I posted a tutorial on my site about checking your .sh scripts for bashisms. Here's the link Bashisms. Test it out to see if it works for yourself, any comments are welcome.
The checkbashisms also sometimes reports false alarms:
Code:
~/DEVSCRIPTS/usr/bin$ [color="Blue"]./checkbashisms ~/scripts/vergallery.sh [/color]
possible bashism in ~/scripts/vergallery.sh line 265 ($SECONDS):
RESOLUTION="${MINUTES}:${SECONDS}"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.