Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interp: add dotglob support #1022

Open
aucampia opened this issue Aug 7, 2023 · 1 comment
Open

interp: add dotglob support #1022

aucampia opened this issue Aug 7, 2023 · 1 comment

Comments

@aucampia
Copy link

aucampia commented Aug 7, 2023

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.

@mvdan
Copy link
Owner

mvdan commented Aug 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants