Package: devscripts
Version: 2.10.17
Severity: wishlist
User: [EMAIL PROTECTED]
Usertags: checkbashisms

Please add the following bashisms based on the next test:

$ cat bashisms
#!/bin/sh
echo $SECONDS
echo $OSTYPE
echo $HOSTTYPE
echo $MACHTYPE
echo $HOSTNAME
echo $DIRSTACK
echo $EUID
echo $LINENO #posh _DOES_ display this one
echo 'die!' > /dev/tcp/domain.tld/80 #Debian's bash doesn't support it, but...
echo 'die!' > /dev/udp/domain.tld/21 #Debian's bash doesn't support it neither
cat <<< 'echo moo!'
bash <<< 'echo foo'

$ bash bashisms
0
linux-gnu
i486
i486-pc-linux-gnu
nova
/tmp
1000
9
bashisms: line 10: /dev/tcp/domain.tld/80: No such file or directory
bashisms: line 11: /dev/udp/domain.tld/21: No such file or directory
echo moo!
foo
----

$ zsh bashisms
0
linux-gnu

i686


1000
9
bashisms:10: no such file or directory: /dev/tcp/domain.tld/80
bashisms:11: no such file or directory: /dev/udp/domain.tld/21
echo moo!
foo
----

$ ksh bashisms
0.001






9
echo moo!
foo
----

$ posh bashisms







9
bashisms:10: cannot create /dev/tcp/domain.tld/80: No such file or directory
bashisms:11: cannot create /dev/udp/domain.tld/21: No such file or directory
bashisms:12: syntax error: `< ' unexpected
----

$ dash bashisms








bashisms: 10: cannot create /dev/tcp/domain.tld/80: Directory nonexistent
bashisms: 11: cannot create /dev/udp/domain.tld/21: Directory nonexistent
bashisms: 12: Syntax error: redirection unexpected
----

Kind regards,
-- 
Atomo64 - Raphael

Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to