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] '<> file' does not create the missing file (GNU opens O_RDWR|O_CREAT; rubash fails ENOENT) #264
Found by: wt5/audit source lane (2026-09-28), script-file-verified against WSL GNU Bash 5.3.0.
Summary:<> file (r_input_output) must open read-write with create, so redirecting a nonexistent file creates it empty. rubash's open fails with ENOENT and the whole command errors.
GNU C source owner:third_party/bash/make_cmd.c:682make_redirection():
GNU 5.3.0:xy (printf writes to fd 1, redirect is on stdin), rc=0, size=0 — file brandnew was created empty by the <> open. rubash: stderr line 5: cat: brandnew: No such file or directory + line 5: brandnew: No such file or directory, size= — the <> open itself failed; command aborted rc=1.
Rubash owner:src/executor/redirection.rs input-output open path (rw open without create flag), fed by src/parser/redirections.rs.
Classification: rubash-caused. Breaks the exec {fd}<>file read-write channel idiom and <> $tty-style device opens.
Activity
docs: source-audit lane (wt5/audit) — GNU C vs Rust owner gap audit, …
fd/io family: move-fd dups, <> create, empty-target diagnostics, bad-…
caomengxuan666 commentedon Sep 27, 2026
已修复并合入 master(commit 3aec2a83,lane wt6/fdio;GNU 引用与 14 探针矩阵/真基线切片验证见提交——redir/read/heredoc/procsub 全 0 差异,regression 24/24)。感谢报告!