-./shopt.tests: shopt: illegal option: -z
+./shopt.tests: line 2: shopt: -z: invalid option
shopt: usage: shopt [-pqsu] [-o long-option] optname [optname...]
--
shopt -u cdable_vars
shopt -u checkhash
shopt -u checkwinsize
shopt -s cmdhist
+shopt -u compat31
shopt -u dotglob
shopt -u execfail
shopt -s expand_aliases
+shopt -u extdebug
shopt -u extglob
-shopt -u histreedit
+shopt -s extquote
+shopt -u failglob
+shopt -s force_fignore
+shopt -u gnu_errfmt
shopt -u histappend
+shopt -u histreedit
shopt -u histverify
shopt -s hostcomplete
shopt -u huponexit
shopt -s interactive_comments
shopt -u lithist
+shopt -u login_shell
shopt -u mailwarn
+shopt -u no_empty_cmd_completion
shopt -u nocaseglob
+shopt -u nocasematch
shopt -u nullglob
+shopt -s progcomp
shopt -s promptvars
shopt -u restricted_shell
shopt -u shift_verbose
shopt -s sourcepath
+shopt -u xpg_echo
--
shopt -u huponexit
shopt -u checkwinsize
shopt -s cdspell
shopt -s cmdhist
shopt -s expand_aliases
+shopt -s extquote
+shopt -s force_fignore
shopt -s hostcomplete
shopt -s interactive_comments
+shopt -s progcomp
shopt -s promptvars
shopt -s sourcepath
--
shopt -u cdable_vars
shopt -u checkhash
shopt -u checkwinsize
+shopt -u compat31
shopt -u dotglob
shopt -u execfail
+shopt -u extdebug
shopt -u extglob
-shopt -u histreedit
+shopt -u failglob
+shopt -u gnu_errfmt
shopt -u histappend
+shopt -u histreedit
shopt -u histverify
shopt -u huponexit
shopt -u lithist
+shopt -u login_shell
shopt -u mailwarn
+shopt -u no_empty_cmd_completion
shopt -u nocaseglob
+shopt -u nocasematch
shopt -u nullglob
shopt -u restricted_shell
shopt -u shift_verbose
+shopt -u xpg_echo
--
cdable_vars off
checkhash off
checkwinsize off
+compat31 off
dotglob off
execfail off
+extdebug off
extglob off
-histreedit off
+failglob off
+gnu_errfmt off
histappend off
+histreedit off
histverify off
huponexit off
lithist off
+login_shell off
mailwarn off
+no_empty_cmd_completion off
nocaseglob off
+nocasematch off
nullglob off
restricted_shell off
shift_verbose off
+xpg_echo off
--
set +o allexport
set -o braceexpand
+set -o emacs
set +o errexit
+set +o errtrace
+set +o functrace
set -o hashall
set -o histexpand
+set -o history
+set +o ignoreeof
+set -o interactive-comments
set +o keyword
set -o monitor
set +o noclobber
set +o noexec
set +o noglob
+set +o nolog
set +o notify
set +o nounset
set +o onecmd
set +o physical
+set +o pipefail
+set +o posix
set -o privileged
set +o verbose
-set +o xtrace
-set -o history
-set +o ignoreeof
-set +o interactive-comments
-set +o posix
-set -o emacs
set +o vi
+set +o xtrace
--
allexport off
braceexpand on
+emacs on
errexit off
+errtrace off
+functrace off
hashall on
histexpand on
+history on
+ignoreeof off
+interactive-comments on
keyword off
monitor on
noclobber off
noexec off
noglob off
+nolog off
notify off
nounset off
onecmd off
physical off
+pipefail off
+posix off
privileged on
verbose off
-xtrace off
-history on
-ignoreeof off
-interactive-comments off
-posix off
-emacs on
vi off
+xtrace off
--
set +o allexport
set -o braceexpand
+set -o emacs
set +o errexit
+set +o errtrace
+set +o functrace
set -o hashall
set -o histexpand
+set -o history
+set +o ignoreeof
+set -o interactive-comments
set +o keyword
set -o monitor
set +o noclobber
set +o noexec
set +o noglob
+set +o nolog
set +o notify
set +o nounset
set +o onecmd
set +o physical
+set +o pipefail
+set +o posix
set -o privileged
set +o verbose
-set +o xtrace
-set -o history
-set +o ignoreeof
-set +o interactive-comments
-set +o posix
-set -o emacs
set +o vi
+set +o xtrace
--
set -o history
set +o verbose
--
set -o braceexpand
+set -o emacs
set -o hashall
set -o histexpand
+set -o history
+set -o interactive-comments
set -o monitor
set -o privileged
-set -o history
-set -o emacs
--
set +o allexport
set +o errexit
+set +o errtrace
+set +o functrace
+set +o ignoreeof
set +o keyword
set +o noclobber
set +o noexec
set +o noglob
+set +o nolog
set +o notify
set +o nounset
set +o onecmd
set +o physical
-set +o verbose
-set +o xtrace
-set +o ignoreeof
-set +o interactive-comments
+set +o pipefail
set +o posix
+set +o verbose
set +o vi
+set +o xtrace
--
allexport off
errexit off
+errtrace off
+functrace off
+ignoreeof off
keyword off
noclobber off
noexec off
noglob off
+nolog off
notify off
nounset off
onecmd off
physical off
-verbose off
-xtrace off
-ignoreeof off
-interactive-comments off
+pipefail off
posix off
+verbose off
vi off
+xtrace off
--
-./shopt.tests: shopt: xyz1: unknown shell option name
-./shopt.tests: shopt: xyz1: unknown option name
+./shopt.tests: line 93: shopt: xyz1: invalid shell option name
+./shopt.tests: line 94: shopt: xyz1: invalid option name