Re: BASH lint

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

 



On Fri, 2003-10-17 at 05:46, Bill Gradwohl wrote:
> 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.

I hate it when that happens!  Do you use emacs?  If not, emacs has a
mode that will line up your indents when you press tab on a line.  When
you miss a } you will notice the indentation is wrong.  But emacs isn't
perfect either...

Haven't heard of a lint for bash though.  Tried google?

HTH,
-- 
Iain Buchanan <iain@xxxxxxxxxxxx>


-- 
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