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 special parameters @ and * in parameter expansion with subscripts using braces #1299
# Echoes the last argument passed to itfntest() { echo"${@[-1]}"; }; fntest foo bar baz
# baz
❌ Fails to parse when indexing @ or * with a subscript and braces
./shfmt --language-dialect zsh <<<'echo "${@[-1]}"'# <standard input>:1:10: cannot index a special parameter name
./shfmt --language-dialect zsh <<<'echo "${*[-1]}"'# <standard input>:1:10: cannot index a special parameter name
Activity
syntax: relax "cannot index special parameter" in zsh
fix(deps): update module mvdan.cc/sh/v3 to v3.13.1 (#397)
chore(deps): update module mvdan.cc/sh/v3/cmd/shfmt to v3.13.1 (hetzn…