mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
don't run posix mode regress tests on ksh without -o posix
This commit is contained in:
parent
c049eec854
commit
76d71889e2
2 changed files with 5 additions and 2 deletions
|
@ -109,8 +109,9 @@ fi
|
|||
if [[ -o ?posix && $("$SHELL" -o posix -c 'xi=xi+4;echo $xi') != "xi+4" ]]
|
||||
then err_exit "attributes imported despite posix mode (-o posix)"
|
||||
fi
|
||||
ln -s "$SHELL" "$tmp/sh"
|
||||
if [[ $("$tmp/sh" -c 'xi=xi+4;echo $xi') != "xi+4" ]]
|
||||
if [[ -o ?posix ]] &&
|
||||
ln -s "$SHELL" "$tmp/sh" &&
|
||||
[[ $("$tmp/sh" -c 'xi=xi+4;echo $xi') != "xi+4" ]]
|
||||
then err_exit "attributes imported despite posix mode (invoked as sh)"
|
||||
fi
|
||||
x=$(foo=abc $SHELL <<!
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue