koalaman / shellcheck

ShellCheck, a static analysis tool for shell scripts
https://www.shellcheck.net
GNU General Public License v3.0
36.35k stars 1.77k forks source link

Warn about multi-digits fds in ksh #171

Open koalaman opened 10 years ago

Gandalf- commented 5 years ago

This has been fixed

    bashism (T_FdRedirect id num _)
        | all isDigit num && length num > 1 = warnMsg id "FDs outside 0-9 are"
koalaman commented 5 years ago

This check is just for sh and dash. It doesn't trigger for Ksh:

shellcheck -s ksh - <<< 'echo 42> file'