ShellCheck – check basic POSIX shell script errors

2015-08-03 96 words 1 min read

Here is description of the tool:

Description : The goals of ShellCheck are:
  • To point out and clarify typical beginner’s syntax issues,
    :   that causes a shell to give cryptic error messages.
  • To point out and clarify typical intermediate level semantic
    :   problems, that causes 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.

To install

dnf install ShellCheck

And just run the tool on the script to get the common errors.


author

Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it