/bin/sh shell - the posix shell and {} braces expansion case
Arkadiusz Miskiewicz
arekm at pld-linux.org
Wed Nov 8 11:29:51 CET 2006
On Wednesday 08 November 2006 10:37, Arkadiusz Miskiewicz wrote:
> Well, there is only bash left as a option for /bin/sh it seems ;-)
Interesting test suite:
http://www.feyrer.de/NetBSD/blog.html/nb_20050320_1408.html
[arekm at tarm ~]$ /bin/bash ifs.sh
# tests 6856 passed 6856 failed 0
/bin/sh == bash
[arekm at tarm ~]$ /bin/sh ifs.sh
# tests 6856 passed 6856 failed 0
[arekm at tarm ~]$ /bin/ksh ifs.sh | grep '^#'
# tests 6856 passed 2584 failed 4272
/bin/sh == pdksh
[arekm at tarm ~]$ /bin/sh ifs.sh | grep '^#'
# tests 6856 passed 2584 failed 4272
[arekm at tarm ~]$ /bin/zsh ifs.sh | grep '^#'
# tests 664 passed 72 failed 592 -- fundamental IFS error -- 6856 tests
expected
/bin/sh == zsh
[arekm at tarm ~]$ /bin/sh ifs.sh | grep '^#'
# tests 6856 passed 3560 failed 3296
heirloom-sh
[arekm at tarm ~]$ /bin/jsh ifs.sh | grep '^#'
ifs.sh: bad substitution
dash
[arekm at tarm ~]$ /bin/dash ifs.sh 2>&1 | grep '^#'
# tests 6856 passed 3944 failed 2912 ordered 1336
posh
[arekm at tarm ~]$ /bin/posh ifs.sh 2>&1 | grep '^#'
# tests 6856 passed 2584 failed 4272
Welcome back bash as /bin/sh?
--
Arkadiusz Miśkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/
More information about the pld-devel-en
mailing list