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
[bug] Over-lax: 'cat <& <(echo x)' is accepted and executed (GNU: 'ambiguous redirect', rc=1) #340
Found by gnusweep3 lane (cat3 p017; WSL GNU Bash 5.3.0 oracle, worktree 0fe8d0f).
Repro:
cat <&<(echo x)
GNU 5.3.0: line 1: <(echo x): ambiguous redirect, rc=1, no output (dup redirection target word expands to a multi-char path -> ambiguous).
rubash: prints x, rc=0, no error — accepts and dups from the procsub path.
GNU C owner: redir.c:201 redirection_expand() — the ambiguous-redirect branch (redir.c:298 redirection_expand owns redirection word expansion).
Artifacts: target/issue-suites/results/gnusweep3/cat3/case/p017.; minimal target/issue-suites/results/gnusweep3/probes/min/m06-dup-procsub.
Fixed by wt20/deepsweep (edda851f): cat <& <(x) and 2>& <(x) now report <(echo x): ambiguous redirect rc=1 (redir.c:784-851, the >& fd1 r_err_and_out exception at :832-838).
Activity
fix(#339,#340): procsub parse admission + dup-word ambiguous redirect
caomengxuan666 commentedon Sep 30, 2026
Fixed by wt20/deepsweep (edda851f): cat <& <(x) and 2>& <(x) now report
<(echo x): ambiguous redirectrc=1 (redir.c:784-851, the >& fd1 r_err_and_out exception at :832-838).