Closed mcandre closed 10 years ago
Note: Except for csh/tcsh, which are non-POSIX compliant. csh and tcsh only recognize source
, not dot (.
).
When specifying #!/bin/sh
or -s sh
, you get
source foo
^-- SC2039: #!/bin/sh was specified, but 'source' in place of '.' is not standard.
Though checkbashisms does not report this, I believe
source
is a bashism; POSIX sh (and even modern descendants like ash/dash) only recognizes the dot (.
) command.Could shellcheck get an optional rule for this, disabled by default? Something like: