bug-findutils
[Top][All Lists]
Advanced

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

Re: xargs prompts with the same string, but executes differently


From: Eric Blake
Subject: Re: xargs prompts with the same string, but executes differently
Date: Tue, 23 Jul 2019 13:49:19 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 7/23/19 1:31 PM, Assaf Gordon wrote:

> 
> This is not about "-p", but simply that "{}" puts the entire input line
> ("0 0") as a single parameter (as if quoted).
> 
> The correct comparison is:
> 
>   echo | xargs -p xdotool mousemove 0 0 click 1 mousemove restore
> vs
>   echo | xargs -p xdotool mousemove "0 0" click 1 mousemove restore

Still, it would be nice if xargs could add appropriate quoting in its -p
output to avoid the ambiguity.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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