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

Kevin Ernst <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Follow-up Comment #15, bug #51151 (project findutils):

Happened upon a mention of the '-o' option in a Unix & Linux Stack Exchange
comment (specifically in reference to the macOS/BSD 'xargs'), and I was
thrilled to see this already implemented here.

While there is much to be said for the very nuts-and-bolts 'sh -c […]
</dev/tty' approach, in terms of user ergonomics, and in terms of a solution
that I'm likely to _remember_ next week or next year, I much, much prefer the
'-o' option.


find . -name "*.py" | xargs sh -c 'vim "$@" </dev/tty'

# vs
find . -name "*.py" | xargs -o vim


Just speaking as a regular end user (who is not on the cutting edge, and who
almost always has to wait for features like these to trickle down into distros
and ports systems), I appreciate the no muss, no fuss one-for-one
implementation for feature parity with macOS/BSD. That said, I comprehend the
portability concerns as well, and your solution here strikes a good balance.

Thanks for your efforts, everyone. Cheers to all involved.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.