14 Feb
2007
14 Feb
'07
8:54 a.m.
Wilfredo Sánchez Vega wrote:
What's -r? It's not on OS X, so I don't think it's a portable option...
Oh, I'm sorry. I did not check portability.
Is xargs on Linux calling rm with an empty argument list?
Yes, as long as -r is not used. I'm using a Debian/sarge Linux system with GNU xargs version 4.1.20. strauss@aligator$ echo a b c | xargs echo a b c strauss@aligator$ echo a b c | xargs -r echo a b c strauss@aligator$ echo "" | xargs echo strauss@aligator$ echo "" | xargs -r echo strauss@aligator$