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

tests/options.sh: add forgotten SHOPT_BRACEPAT check (re: af5f7acf)

This commit is contained in:
Martijn Dekker 2021-02-15 01:57:17 +00:00
parent af5f7acf99
commit 5be585f45b
2 changed files with 2 additions and 1 deletions

View file

@ -539,7 +539,9 @@ if [[ -o ?posix ]]; then
(set +o posix; set --posix >/dev/null; [[ -o posix ]]) || err_exit "set --posix != set -o posix"
(set -o posix; set --noposix; [[ -o posix ]]) && err_exit "set --noposix != set +o posix"
(set -o posix +o letoctal; [[ -o letoctal ]]) && err_exit "failed to stop posix option from turning on letoctal"
if((SHOPT_BRACEPAT)); then
(set +B; set -o posix -B; [[ -o braceexpand ]]) || err_exit "failed to stop posix option from turning off bracceexpand"
fi # SHOPT_BRACEPAT
(set --default -o posix; [[ -o letoctal ]]) && err_exit "set --default failed to stop posix option from changing others"
fi