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
[parse] function-definition name word containing unquoted $( ) rejected — GNU accepts (breaks zZshFramework files.sh) #462
rubash's own runtime sources the file (ConPTY run reaches the prompt and defines the function) — only the -n parse path rejects.
GNU C source anchor (vendored bash.git @b4608166, Bash-5.3 patch 15)
parse.y:1054 function_def: WORD '(' ')' newline_list function_body — the rule requires a WORD; a word containing an unquoted $(...) is still a single WORD token (the lexer folds $(...) into the word via parse_comsub, cf. the $( branch at parse.y:5513-5532 which appends the substitution text into the current token), so f$()g is a valid WORD in function_def position.
Classification
Parser divergence (function-definition name word admission). Note the runtime/parser split inside rubash itself: rubash -n rejects what rubash's own executor accepts — the fix belongs in the function-definition admission of the parse path used by -n.
Activity
docs(audit): wt98b/goldtri ecosystem gold triage — 172 rows classifie…
fix(parser): accept function-def name words containing unquoted $( ) …