Hi,
Raphael Geissert wrote, Wednesday, January 30, 2008 3:07 AM
On scripts with a /bin/csh shebang and other scripts with a
non /bin/{sh,ash,dash} shebang checkscripts quits without processing them.
The portion of code is:
elsif ($interpreter !~ m,/(sh|ash|dash)$,) {
It should instead use something like:
elsif ($interpreter !~ m,/[a-z]*(sh)$,) {
I have to agree with Peter here.
By definition, a bashism is the use of a bash-specific feature in a script
that is written according to the structure and grammar defined in
POSIX/SUS/XSI, without that script being marked with a bash shebang.
Attempting to check for bashisms in scripts that don't implement that
language doesn't make sense.
One could argue that the check should support ksh, although I seem to
remember that most bashisms are also "kshisms".
Adam
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]