bug-findutils
[Top][All Lists]
Advanced

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

xargs blows up on files with stupid characters in their names


From: Padraig Brady
Subject: xargs blows up on files with stupid characters in their names
Date: Sat, 22 Dec 2001 05:24:29 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221

Hi Jamie,

As you know xargs in default mode can delimit arguments
with spaces or newlines. However single arguments with spaces
can be protected using quotes, hence the special quote processing
you're running into, so:

#echo '"arg1" "arg2"' | xargs
arg1 arg2

quotes are not handled when you specify xargs -0
so consider this as meaning args can have any chars
except \0's so:

#touch file\'1
#find file* -print0 | xargs -0
file'1

Yes the missing \n in --help is annoying and was a regression
going from 4.1.6 -> 4.1.7

Padraig




reply via email to

[Prev in Thread] Current Thread [Next in Thread]