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, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to