Closed theclapp closed 2 years ago
FYI this is bash's extglob, which you can find in its man page; we don't support zsh yet.
The interpreter doesn't support expanding that syntax, simply because this feature is very rarely used, so it's not been a priority. I guess we could make the interpreter error instead of panic, though - would that help? I would happily approve and merge a PR doing that, as I agree that having the interpreter panic over a known TODO is a bit dramatic.
For the sake of clarity, I'd be happy to review a PR implementing this change with tests, if anyone feels like taking a stab.
*(/)
is zsh for "* but only for directories". Which it is of course fine if gosh doesn't handle, but it shouldn't panic, I wouldn't think.