From: Johannes Sixt Date: Thu, 23 Apr 2009 09:22:20 GMT Subject: Re: [PATCH] tests: remove xargs in favor of --stdin where possible Message-ID: <49F0334C.6000004@viscovery.net> In-Reply-To: <7vfxfzwytx.fsf@gitster.siamese.dyndns.org> Junio C Hamano schrieb: > 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 Why should this be so? I thought I need -0/-z only if there are "\n" in file names (and I specifially talk about a find | update-index pipeline). > (on the other hand, "update-index -z --stdin" is good for reading > output from "find -0"; but for portability we avoid GNUism "find -0"). Sure, -0/-z is safer and to be used in scripts. But for an ad-hoc command that I type on the command line, why should I use -0/-z if I know that I don't have any "\n" in my file names? -- Hannes