-
Notifications
You must be signed in to change notification settings - Fork 13
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
Use null delimiters in xargs to support space in file names #95
Conversation
It seems |
what do you mean? if you want to use fd to format, you should do |
These are the failing tests where I used It doesn't like files in |
Could you add a rationale for this change to the description, or ideally, the commit? Is it to support file names with spaces? If so git ls-files -z for \0-terminated file names might be an even more robust alternative (see e.g. man page) |
use |
That would run nixfmt on the files mentioned in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
Alternatively we could have xargs use newline instead of space as the delimiter, but fd will also ignore hidden files and respect
.gitignore
if it finds such further down.