We don't support all of bash's shell options, at the moment we support these three:
$ gosh -c "shopt"
expand_aliases off
globstar off
nullglob off
Bash actually has more options than what's listed above, see shopt documentation but we only print what's supported which could be misleading and unhelpful, eg when someone looks up for an option shopt | grep extglob, they'll get empty results.
Also trying to set an unsupported bash option leads to a confusing error message:
We don't support all of bash's shell options, at the moment we support these three:
Bash actually has more options than what's listed above, see shopt documentation but we only print what's supported which could be misleading and unhelpful, eg when someone looks up for an option
shopt | grep extglob
, they'll get empty results.Also trying to set an unsupported bash option leads to a confusing error message:
We could improve the error message by explicitly saying it is instead unsupported.