You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
zsh: support leading parens for zsh glob alternations and flags in command arguments #1279
✅ 1cf3c19: added support for it inside [[ ]] test expressions
Usage in regular command arguments is not supported when ( is a leading paren
# Alternation
./shfmt -ln zsh <<<'echo (foo|bar).baz'# <standard input>:1:6: a command can only contain words and redirects; encountered `(`# Case-insensitive flag (requires EXTENDED_GLOB)
./shfmt -ln zsh <<<'setopt extendedglob; ls (#i)*.mod'# <standard input>:1:25: a command can only contain words and redirects; encountered `(`
Activity
syntax: support leading parens for zsh globs in command arguments