bug-findutils
[Top][All Lists]
Advanced

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

Re: xargs blows up on files with stupid characters in their names


From: Jamie Zawinski
Subject: Re: xargs blows up on files with stupid characters in their names
Date: Fri, 21 Dec 2001 21:37:58 -0800

Padraig Brady wrote:
> 
> #touch file\'1
> #find file* -print0 | xargs -0
> file'1

So I assume you're saying "this is not a bug, use different args
instead?"

I can't see any reason to favor the current xargs behavior: why would I
*want* it to mis-interpret one file name as two?  If I give xargs a
stdin of

        foo' bar
        blat' foop

then it ought to just be invoking

        execvp ("program", ["foo' bar", "blat' foop", 0]);

Why is it interpreting shell-syntax characters in the input at all,
instead of just using the line as-is?

-- 
Jamie Zawinski
address@hidden             http://www.jwz.org/
address@hidden       http://www.dnalounge.com/



reply via email to

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