retitle 586500 [checkbashisms] please support checking stdin
thanks

Hi,

Even if you tell checkbashisms to read from /dev/stdin (or /dev/fd/0, or 
/proc/self/fd/0, or whatever,) it won't work as expected because it opens the 
file twice (once for looking for evil scripts, the second for actually checking 
for bashsisms.)
The most you can currently get checkbashims to tell you from stdin is whether 
the input looks like a shell wrapper:

$ { echo '#!/bin/sh'; echo 'exec foo $0 $@'; } | checkbashisms /dev/stdin

$ { echo '#!/bin/sh'; echo "echo -e foo"; echo 'exec foo $0 $@'; } | 
checkbashisms /dev/stdin
script /dev/stdin appears to be a shell wrapper; only checking the first 2 
lines

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net



-- 
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