[Rpm-maint] [rpm-software-management/rpm] Use newline as a delimiter to avoid xargs messing up file names with … (#765)
notifications at github.com
Wed Jun 26 07:41:03 UTC 2019
It does fix the case of quotes, but technically a newline is a legitimate character in file names too, even if even very rare. Why not use -print0 / -0 which eliminates the problem once and for all? Even xargs manual suggests that:
> --delimiter=delim, -d delim
> You can use this option when the input consists of
> simply newline-separated items, although it is almost always
> better to design your program to use --null where this is possible.
Even "file" supports the null-terminated string syntax, for a reason.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rpm-maint