mcandre / stank

stank: analyzers for determining whether files smell like rotten POSIX shell scripts, or faintly rosy like Ruby and Python scripts
Other
53 stars 0 forks source link

option to encourage exec #116

Open mcandre opened 1 year ago

mcandre commented 1 year ago

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, because of the resulting ambiguous control flow.

Ignore commented lines.

Ignore compound commands involving pipe (|), logical and (&&), logical or (||), or logical not (!).

Note that compound commands may straddle multiple lines.