Ryan Niebur wrote, Wednesday, July 01, 2009 8:21 AM:
bash jade test-checkbashism $ cat script.sh
#!/bin/sh

source a
[...]
bash jade test-checkbashism $ checkbashisms ./script.sh
bash jade test-checkbashism $ echo $?
0

It *does*, but not if the filename being sourced is a single character.

$ cat script.sh
#!/bin/sh

source ab

$ checkbashisms script.sh
possible bashism in script.sh line 3 (should be '.', not 'source'):
source ab

I can see why, and a possible solution; I just need to check that it doesn't introduce any further issues.

Regards,

Adam



--
To unsubscribe, send mail to [email protected].

Reply via email to