work around GNU getopt(3) violating every single standard in existence

This commit is contained in:
tg 2008-09-19 10:41:55 +00:00
parent 8a853f24be
commit a9342be98a

View File

@ -1,4 +1,4 @@
# $MirOS: src/bin/mksh/check.t,v 1.222 2008/09/17 19:31:28 tg Exp $
# $MirOS: src/bin/mksh/check.t,v 1.223 2008/09/19 10:41:55 tg Exp $
# $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $
# $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $
@ -4258,8 +4258,8 @@ category: !smksh
stdin:
ln -s "$__progname" ksh
ln -s "$__progname" sh
ln -s "$__progname" -ksh
ln -s "$__progname" -sh
ln -s "$__progname" ./-ksh
ln -s "$__progname" ./-sh
for shell in {,-}{,k}sh; do
print -- $shell $(./$shell +l -c \
'[[ $(set +o) == *@(-o posix)@(| *) ]] && echo posix || echo noposix')