Package: devscripts
Version: 2.10.47
Severity: wishlist
File: /usr/bin/checkbashisms

Here's another thing you can check for
$ cat e.sh
#!/bin/sh
m=n o=$m; echo $o
$ bash e.sh
n
$ dash e.sh

$ checkbashisms e.sh
$ checkbashisms -p e.sh
$

By the way, the man page could mention how you deal with stdin.
$ echo 'i=p m=$i; echo $m'|checkbashisms -
script - does not appear to have a #! interpreter line;
you may get strange results
$ echo 'i=p m=$i; echo $m'|checkbashisms /dev/stdin
$




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

Reply via email to