Skip to content

[bug] Write-error diagnostics lack the command name and "write error" wording (external commands' errors are attributed to the shell) #1496

Closed

Description

@caomengxuan666

Environment: rubash master 31e2638, GNU bash 5.3.20 as oracle, Linux x86_64.

Repro:
echo hi > /dev/full
/bin/echo hi > /dev/full
printf 'hi\n' > /dev/full

GNU bash 5.3.20:
echo: write error: No space left on device
/bin/echo: write error: No space left on device
printf: write error: No space left on device

rubash (all three):
probe.sh: line N: No space left on device

Exit statuses agree. Builtin and external write failures are funneled
through the shell's bare-errno channel, losing both the command name
and the "write error" framing (same in-process diagnostic channel
family as #1309).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions