[Rpm-maint] [rpm-software-management/rpm] Use newline as a delimiter to avoid xargs messing up file names with … (#765)
Panu Matilainen
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:
https://github.com/rpm-software-management/rpm/pull/765#issuecomment-505759309
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190626/06d8dcb4/attachment.html>
More information about the Rpm-maint
mailing list