Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builtins do not fail upon unsuccessful write #7857

Closed
nertpinx opened this issue Mar 23, 2021 · 1 comment
Closed

builtins do not fail upon unsuccessful write #7857

nertpinx opened this issue Mar 23, 2021 · 1 comment

Comments

@nertpinx
Copy link

As mentioned in #7836, the builtin echo does not fail when the the writes fail, making it difficult to realize whether there was an error or not.

The easiest way to reproduce this on Linux is:

$ builtin echo >/dev/full
write: No space left on device
$ echo $status
0
@zanchey zanchey added this to the fish-future milestone Mar 28, 2021
@faho faho changed the title The builtin echo does not fail upon unsuccessful write builtins not fail upon unsuccessful write Mar 31, 2021
@faho
Copy link
Member

faho commented Mar 31, 2021

This applies to builtins in general. We do not currently have the API to express that a write failed after opening the file.

@faho faho changed the title builtins not fail upon unsuccessful write builtins do not fail upon unsuccessful write Apr 3, 2021
@zanchey zanchey modified the milestones: fish-future, fish 3.3.0 Apr 4, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants