sh icon indicating copy to clipboard operation
sh copied to clipboard

interp: add dotglob support

Open aucampia opened this issue 1 year ago • 1 comments

Bash supports dotglob, but as far as I can tell mvdan.cc/sh/v3/cmd/gosh does not:

$ go run mvdan.cc/sh/v3/cmd/gosh@latest -c 'shopt -s globstar; shopt -s dotglob; printf "%s\n" ./**/README*'
shopt: invalid option name "dotglob" "off" ("on" not supported)

Just want to know if you are open to including support for it.

aucampia avatar Aug 07 '23 11:08 aucampia

Yes of course - within reason, any useful Bash feature should be added to the interpreter.

mvdan avatar Aug 23 '23 20:08 mvdan