root@zetawiki:~# echo $SHELLOPTS
braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
root@zetawiki:~# readonly | grep SHELLOPTS
declare -r SHELLOPTS="braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor"
root@zetawiki:~# echo $SHELLOPTS
braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
root@zetawiki:~# set -o vi
root@zetawiki:~# echo $SHELLOPTS
braceexpand:hashall:histexpand:history:interactive-comments:monitor:vi
root@zetawiki:~# set -o emacs
root@zetawiki:~# echo $SHELLOPTS
braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
root@zetaknow:~# set -e
root@zetaknow:~# echo $SHELLOPTS
braceexpand:emacs:errexit:hashall:histexpand:history:interactive-comments:monitor
root@zetaknow:~# set +e
root@zetaknow:~# echo $SHELLOPTS
braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor