# return shell option string
# save: MYVAR="$(shell_getopts)"
# restore: eval "$MYVAR" # quotes are important
shell_getopts() {
  set +o
  # shopt -p 2>/dev/null
}
