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] word-attached multi-line process substitution word<( NL ... NL ) rejected — GNU accepts (breaks json.bash jb-cli example) #463
Only the word-attached form (word immediately followed by <(, no space) fails when the body spans lines. The closing ) of the body is reported as "unexpected token".
rubash master a157656rubash -n: rc=2, syntax error near unexpected token ')' at the body's closing paren.
GNU C source anchor (vendored bash.git @b4608166, Bash-5.3 patch 15)
parse.y:3793-3797 read_token() — the lexer explicitly falls through to word-reading when a </> is followed by (: if MBTEST((character != '>' && character != '<') || peek_char != '(') return (character); — i.e. word<( is read as a word whose substitution body is consumed by the word reader, with the body handled by the same matched-pair/comsub discipline that treats newlines as body characters (cf. parse_matched_pair LEX_GTLT tracking of <( ... ), parse.y:4147-4153 and 4193-4195).
Classification
Parser divergence (process-substitution body scan when attached to a word). Multi-line bodies via the space-separated form already work, so the body-reading machinery exists — the word-attached admission path does not span newlines.
Activity
docs(audit): wt98b/goldtri ecosystem gold triage — 172 rows classifie…
fix: top-level unclosed procsub continuation, [ ( diagnostic token, b…