Andrew
Andrew
(the shell, not the security tool) https://github.com/mitnk/cicada
https://www.nushell.sh/
Treat as POSIXy. Add some examples.
Non-library POSIX family shell scripts should generally end in an exec command, in order to save memory. Scripts that use list traps or zsh function traps, should not use exec,...
Offer an option to go ahead and run a sub-command for linting each result This solves a lot of issues relating to spaces in file and directory names, xargs, findutils,...
Although we do not recommend using spaces in any part of the file path to any source code, the fact remains that sometimes a directory and/or source file basename occasionally...
Look into ways to easily implement limited support for linting non-POSIX shells like (t)csh and rc. Lookup more non-POSIX shells, simply for purposes of file categorization.
We could implement a crude, multiline regex scanner to warn on the use of traps in concert with exec, which presents a hazard. The script author should be made aware...
https://github.com/koalaman/shellcheck/issues/2555 https://unix.stackexchange.com/a/654932
non-posix