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: Kevin Ernst
Subject: [bug #51151] [wishlist] xargs -o support for interactive commands
Date: Sun, 12 Sep 2021 12:43:03 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0

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/




reply via email to

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