A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1628 ====================================================================== Reported By: mirabilos Assigned To: ====================================================================== Project: Online Pubs Issue ID: 1628 Category: Shell and Utilities Type: Enhancement Request Severity: Editorial Priority: normal Status: New Name: mirabilos Organization: MirBSD User Reference: URL: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html Section: xargs(1) ====================================================================== Date Submitted: 2023-01-15 17:18 UTC Last Modified: 2023-01-20 20:46 UTC ====================================================================== Summary: Add -o (reopen stdin) option to xargs(1) ======================================================================
---------------------------------------------------------------------- (0006117) mirabilos (reporter) - 2023-01-20 20:46 https://austingroupbugs.net/view.php?id=1628#c6117 ---------------------------------------------------------------------- oguzismailuysal wrote: > find . -name '*.h' -exec "$EDITOR" {} + Most people I know can never remember the -exec syntax and avoid advanced use of find(1). But the aforementioned “git find” as well as various greps etc. do not offer this anyway, and it’d be good to have it for symmetry. Using find(1) is just concocting an easy-to-remember example… *especially* as you can go from there to …-print0 | while IFS= read -rd '' file; do… immediately. stephane wrote: > xargs -r0a <(cmd1) cmd2 -- Yuk, that’s even GNU bash-specific. > Note that with cmd1 | xargs -r0o cmd2 --, cmd2's stdin is /dev/tty even > when that command is in a script and that script has its input redirected. Yes, that’s a good thing. > quite awkwardly: Same thing as above: nobody’s going to remember these. IIRC the people in GNU coreutils mentioned the same but decided to implement BSD’s -o nevertheless because of its utility in making things better for users and consistent across OSes. Issue History Date Modified Username Field Change ====================================================================== 2023-01-15 17:18 mirabilos New Issue 2023-01-15 17:18 mirabilos Name => mirabilos 2023-01-15 17:18 mirabilos Organization => MirBSD 2023-01-15 17:18 mirabilos URL => https://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html 2023-01-15 17:18 mirabilos Section => xargs(1) 2023-01-15 17:57 oguzismailuysalNote Added: 0006111 2023-01-16 08:12 stephane Note Added: 0006112 2023-01-20 20:46 mirabilos Note Added: 0006117 ======================================================================