-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2096
Vidar Holen edited this page Jan 21, 2015
·
5 revisions
#!/usr/bin/env bash -x
#!/usr/bin/env bash
set -x
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.
None.