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
correctly.

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:

  <http://savannah.gnu.org/bugs/?40648>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to