-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Redirecting to /dev/null
fails with noclobber
#2191
Comments
Thanks for noticing this! And for finding the documentation If you have any time or interest, a patch would be very welcome -- I usually use
and
https://github.com/oils-for-unix/oils/wiki/Contributing https://github.com/oils-for-unix/oils/wiki/Where-Contributors-Have-Problems I'm pretty sure @momiji helped us with this a few months ago |
I’ve looked into it and this seems to be a more complex topic than I thought, if you want to do it right that is. See the discussion in the comments of https://unix.stackexchange.com/questions/720024/is-dev-null-treated-differently-from-other-files-when-the-noclobber-option. |
OK, thank you for looking into it, and thanks for the report! |
Hi, I’ve noticed that OSH raises an error when redirecting to
/dev/null
whilenoclobber
is set.It seems that OSH applies
noclobber
to non-regular files as well as regular files. Compare POSIX (emphasis mine):The text was updated successfully, but these errors were encountered: