Page 1 of 1

Shellcheck

Posted: Sun 15 Jul 2018, 11:02
by scsijon
Not sure where this should be, moderators, please move.

Think this should be added to woof (all versions) as a standard (please).
The goals of ShellCheck are:

To point out and clarify typical beginner's syntax issues that cause a shell to give cryptic error messages.

To point out and clarify typical intermediate level semantic problems that cause a shell to behave strangely and counter-intuitively.

To point out subtle caveats, corner cases and pitfalls that may cause an advanced user's otherwise working script to fail under future circumstances.
https://github.com/koalaman/shellcheck

various url's are there for compiled versions;

would have saved me some three hours of eyestrain.

and yes it's in two puppy threads
http://www.murga-linux.com/puppy/viewto ... =167293374 from pro
and
http://www.murga-linux.com/puppy/viewto ... =167293374 from mcewanw

regards.

Posted: Sat 21 Jul 2018, 09:38
by april
Just tried it on a 50 line script and got 40 errors . Too much work but thanks.