mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2096 (markdown)
@@ -11,7 +11,7 @@
|
||||
|
||||
### Rationale:
|
||||
|
||||
Most operating systems, including Linux, FreeBSD and OS X, allow only a single parameter in the shebang. In the example, `env` will be called with a single parameter -- `bash -x` -- and will therefore fail.
|
||||
Most operating systems, including Linux, FreeBSD and OS X, allow only a single parameter in the shebang. The example is equivalent to calling `env 'bash -x'` instead of `env 'bash' '-x'`, and it will therefore fail.
|
||||
|
||||
The shebang should be rewritten to use at most one parameter. Shell options can instead be set in the body of the script.
|
||||
|
||||
|
Reference in New Issue
Block a user