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] POSIX-mode source diagnostic prints . instead of source #2947
area:builtinsbuiltin semantics (printf/declare/command/type/...)bugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledger
In POSIX mode, when source cannot find the file, GNU names the invoked builtin in the diagnostic (source: mylib.sh: file not found). rubash names the canonical builtin instead (. : mylib.sh: file not found). The behavior itself agrees (no cwd fallback in POSIX mode; the failed special builtin is fatal); only the diagnostic word differs.
Scope (morph, GNU vs rubash, two passes, identical)
DIFF: only the POSIX-mode source form (mE3).
SAME (controls): default-mode source of a missing file (mE1, diagnostic has no builtin name on either shell); POSIX-mode . form (mE4, both print . — correct there); command source / builtin source of a missing file (mE5/mE6); absolute missing path (mE7); default-mode source with cwd fallback succeeds on both (mE8). So the defect is narrowly the diagnostic name used by the POSIX-mode source path.
(The subshell is needed because the failed special builtin is fatal in POSIX mode, so the outer script would not continue otherwise.) Expected (GNU): PASS. Actual (rubash master 500769e): FAIL.
Source
Differential hunt r79 (set/shopt option semantics, second round), oracle GNU bash 5.3.20, verified on fresh master build 500769e (two passes, stable).
area:builtinsbuiltin semantics (printf/declare/command/type/...)bugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledger
Activity
fix: r79 allexport marks, assoc subscript single-eval, source diagnos…
r79: allexport local/readonly + array marks, assoc subscript single-e…