Re: BASH lint

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bill Gradwohl wrote:
Not quite what you are looking for but is you make the top line

#!/bin/bash -x

It will but the script into debugging mode


I use that during debugging, but that's not what I'm after.

I'm looking for a utility to read my BASH script and look for
unbalanced (), {}, [], '', '', ``, strip out comments, and in general
point at possible flaws that are usually typos.

I had a case recently where a missing } at line 50 caused it to
display an error around line 300. That took a while to find.

Use emacs' indenting features. when you miss a special character, indents get real funny.



-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux