diff --git a/src/cmd/ksh93/include/shtable.h b/src/cmd/ksh93/include/shtable.h index 53133bbc2..91030a900 100644 --- a/src/cmd/ksh93/include/shtable.h +++ b/src/cmd/ksh93/include/shtable.h @@ -53,7 +53,6 @@ struct shtable3 #define sh_lookup(name,value) (sh_locate(name,(Shtable_t*)(value),sizeof(*(value)))->sh_number) extern const Shtable_t shtab_testops[]; extern const Shtable_t shtab_options[]; -extern const Shtable_t shtab_options_posix[]; extern const Shtable_t shtab_attributes[]; extern const struct shtable2 shtab_variables[]; extern const struct shtable2 shtab_aliases[]; diff --git a/src/cmd/ksh93/tests/options.sh b/src/cmd/ksh93/tests/options.sh index 59ab0f2da..1ed1af2a1 100755 --- a/src/cmd/ksh93/tests/options.sh +++ b/src/cmd/ksh93/tests/options.sh @@ -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