1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

don't run posix mode regress tests on ksh without -o posix

This commit is contained in:
Martijn Dekker 2020-09-30 20:09:13 +02:00
parent c049eec854
commit 76d71889e2
2 changed files with 5 additions and 2 deletions

View file

@ -534,6 +534,7 @@ print $'alias print=:\nprint foobar' > dotfile
# ======
# test that '-o posix' option (not having a letter) does not affect "$-" expansion
# other than B = braceexpand
if [[ -o ?posix ]]; then
(
command set +o posix 2>/dev/null
opt1=${-/B/}
@ -541,6 +542,7 @@ print $'alias print=:\nprint foobar' > dotfile
opt2=$-
[[ $opt1 == "$opt2" ]]
) || err_exit '-o posix option affects $- expansion'
fi
# ======
# ksh 93u+ did not honor 'monitor' option on command line (rhbz#960034)