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

Specifying the same file for output multiple times in find will overwrite the file by default. #439

Open
hanbings opened this issue Aug 11, 2024 · 0 comments
Labels

Comments

@hanbings
Copy link
Collaborator

refer: #421 (comment)

For future reference: GNU find de-duplicates files, so if you do find -fprint foo -fprint foo it will use the same FILE * for both and you'll get each line twice. Right now uutils will use two different Files and the writes will overlap with each other.

@hanbings hanbings added the bug label Aug 11, 2024
@hanbings hanbings changed the title Specifying the same file for output multiple times in find will overwrite the file by default. Specifying the same file for output multiple times in find will overwrite the file by default. Aug 11, 2024
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