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

cat: should error when appending to input file redirected to stdin but doesn't #7165

Open
jfinkels opened this issue Jan 19, 2025 · 0 comments
Labels

Comments

@jfinkels
Copy link
Collaborator

Environment: Ubuntu 20.04, uutil main branch (git commit d39dcad), GNU coreutils v9.6.3-3189c-dirty.

Steps to reproduce:

touch f && cat <f >>f

What happens now: uutils cat succeeds with no output.

What I expected to happen: GNU cat terminates with an error message:

cat: -: input file is output file

Notes: this is causing a failure in the GNU test file tests/cat/cat-self.sh.

@jfinkels jfinkels changed the title cat: should error when appending to input file but doesn't cat: should error when appending to input file redirected to stdin but doesn't Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant