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

Reply via email to