[Top][All Lists]

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

[bug #40648] xargs -t does not show EXACT command line

From: James Youngman
Subject: [bug #40648] xargs -t does not show EXACT command line
Date: Sun, 12 Jan 2014 20:30:31 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

Update of bug #40648 (project findutils):

                  Status:                    None => Works For Me           
             Open/Closed:                    Open => Closed                 


Follow-up Comment #1:

Shell quoting would probably be misleading though; xargs does not use a shell
to launch its commands.

The --quoting-style=shell variant appears to work since, by default, xargs
does some quote processing on its input.  However this quote processing is not
the same as what the shell does, so depending on this is not a safe option for
the general case.

In your examples though, I don't think that it's nautilus's fault.  The
problem is that xargs considers arguments to be separated by spaces.   Hence a
better way to solve the problem you are describing is this:

$ find . -name "example*" -exec nautilus {} \+

No quoting, shell or otherwise, is needed here to make Nautilus work

Since xargs only launches a shell if you specify it as the command, I'm not
inclined to change the format of the output of "xargs -t" as this would be
backward-incompatible and I don't think doing so has a compelling advantage.

Please feel free to re-open the bug if you plan to convince me otherwise.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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