[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
signature.asc
Description: OpenPGP digital signature
- xargs prompts with the same string, but executes differently, 積丹尼 Dan Jacobson, 2019/07/23
- Re: xargs prompts with the same string, but executes differently, Assaf Gordon, 2019/07/23
- Re: xargs prompts with the same string, but executes differently,
Eric Blake <=
- Re: xargs prompts with the same string, but executes differently, 積丹尼 Dan Jacobson, 2019/07/23
- Re: xargs prompts with the same string, but executes differently, James Youngman, 2019/07/24
- Re: xargs prompts with the same string, but executes differently, Eric Blake, 2019/07/24
- Re: xargs prompts with the same string, but executes differently, Bernhard Voelker, 2019/07/24
- Re: xargs prompts with the same string, but executes differently, Eric Blake, 2019/07/24
- Re: xargs prompts with the same string, but executes differently, 積丹尼 Dan Jacobson, 2019/07/25
- Re: xargs prompts with the same string, but executes differently, James Youngman, 2019/07/25
- Re: xargs prompts with the same string, but executes differently, 積丹尼 Dan Jacobson, 2019/07/25
- Re: xargs prompts with the same string, but executes differently, Bernhard Voelker, 2019/07/29