Re: [PATCH] tests: remove xargs in favor of --stdin where possible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> writes:

>> The tests may not break with your change because none of them may use
>> problematic characters (especially "\n" and '"'), but update-index --stdin
>> without -z is not suitable for reading from output from "find" without -0
>> option (on the other hand, "update-index -z --stdin" is good for reading
>> output from "find -0"; but for portability we avoid GNUism "find -0").
>
> It can't be as safe as find -0| update-index -z, but it would be
> equivalent to find|xargs, isn't it? Both separate arguments by \n.

Have you worked with pathnames with high-bit set and without
core.quotepath set to false?

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]