[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xargs --negate-interactive
From: |
Bernhard Voelker |
Subject: |
Re: xargs --negate-interactive |
Date: |
Sun, 10 Apr 2016 14:54:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 04/08/2016 03:52 PM, 積丹尼 Dan Jacobson wrote:
> xargs has
>
> -p, --interactive
> Prompt the user about whether to run each command line and read
> a line from the terminal. Only run the command line if the re-
> sponse starts with `y' or `Y'. Implies -t.
>
> But then one needs to enter y RET y RET y RET .
>
> To get the same results with just RET RET RET
> xargs needs a --negate-interactive switch,
> that would only skip items if y or Y was given!
Although you're maybe right from the logical point of view, I'm not
sure if 'xargs -p' is used often enough to warrant adding such an option
to the code. The next user may then come and want to have yet another
option like --interactive-assume-n to type RET RET RET and pass a
'y' just for the argument [s]he want the command to be run.
Have a nice day,
Berny