bug-findutils
[Top][All Lists]
Advanced

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

[bug #51151] [wishlist] xargs -o support for interactive commands


From: Thorsten Glaser
Subject: [bug #51151] [wishlist] xargs -o support for interactive commands
Date: Thu, 29 Aug 2019 17:02:25 -0400 (EDT)
User-agent: Lynx/2.9.0dev.2 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/3.6.9

Follow-up Comment #14, bug #51151 (project findutils):

Due to the mail about this being closed, I found this item:

>> Consider the following command:
>>
>>         echo bar | (echo foo | xargs --interactive grep)
>>
>> What should grep's stdin be, /dev/tty or the stdout of "echo
>> bar"?  Is the answer different for other programs? Why? (I

I need to give an easy definite answer here:

The xargs invocation does not have *any* way to access
the stdout of “echo bar” at the point it’s being run
from the parent shell, and this is true for all programs.

This is just how a POSIX-ish shell works.

(Someone suggested a -Rn̲ option which can be used for
that. But as long as -o is supported my use case is fixed.)


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?51151>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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