mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Directive (markdown)
@@ -25,7 +25,7 @@ Specify the shell for a script (similar to the shebang, if you for any reason do
|
|||||||
# shellcheck shell=sh
|
# shellcheck shell=sh
|
||||||
echo foo &> bar
|
echo foo &> bar
|
||||||
|
|
||||||
Directives that replace or are immediately after the shebang apply to the entire script. Otherwise, they are scoped to the command that follows it (including compound commands like function definitions, loops and case statements). A directive may only be applied to a complete command, and can not be used immediately preceding an `else` block or `case` branch:
|
Directives that replace or are immediately after the shebang apply to the entire script. Otherwise, they are scoped to the command that follows it (including compound commands like function definitions, loops and case statements). A directive may only be applied to a complete command, and can not be used immediately preceding an `else` block or individual `case` branch:
|
||||||
|
|
||||||
|
|
||||||
# Directive VALID here, applies to whole `case`
|
# Directive VALID here, applies to whole `case`
|
||||||
|
Reference in New Issue
Block a user