Plus I'm not sure that
'-I REPLACE-STR'
'--replace[=REPLACE-STR]'
'-i[REPLACE-STR]'
Replace occurrences of REPLACE-STR in the initial arguments with
names read from standard input. Also, unquoted blanks do not
terminate arguments; instead, the input is
OK.
But I now "demand" that xargs add a --show-quoting or whatever argument,
so that --verbose, and -p, will now show
'xdotool' 'mousemove' '0 0' 'click' '1' 'mousemove' 'restore' ?...
vs.
'xdotool' 'mousemove' '0' '0' 'click' '1' 'mousemove' 'restore' ?...
for people who care about those details,
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 xdoto
Hello,
On 2019-07-23 9:59 a.m., 積丹尼 Dan Jacobson wrote:
Proof that xargs prompts with the same string, but executes differently:
$ echo 0 0 | xargs -p -I{} xdotool mousemove {} click 1 mousemove restore
xdotool mousemove 0 0 click 1 mousemove restore ?...y
xdotool: Unknown command: 1
Run 'xdoto
Proof that xargs prompts with the same string, but executes differently:
$ echo 0 0 | xargs -p -I{} xdotool mousemove {} click 1 mousemove restore
xdotool mousemove 0 0 click 1 mousemove restore ?...y
xdotool: Unknown command: 1
Run 'xdotool help' if you want a command list
$ echo | xargs -p xdoto