summaryrefslogtreecommitdiffstats
path: root/usr.bin/xargs/xargs.1
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-03-23 18:29:52 +0000
committermux <mux@FreeBSD.org>2003-03-23 18:29:52 +0000
commit76bd33cd1b93dd2343898e0f0cdb4a8aa1b46271 (patch)
treed8dea2198fb4b799619a7cf539bb2ec6eaf22d25 /usr.bin/xargs/xargs.1
parent9785758af05bf04abf659e455022398d1923565b (diff)
downloadFreeBSD-src-76bd33cd1b93dd2343898e0f0cdb4a8aa1b46271.zip
FreeBSD-src-76bd33cd1b93dd2343898e0f0cdb4a8aa1b46271.tar.gz
Add a new -o option to tell xargs(1) to reopen /dev/tty as stdin in
the child process, before executing the command. This is very useful when you do stuff like ``find ... | xargs interactive_application''. Without -o, the application would inherit the pipe as its stdin, and you thus lose any control over it. This flag has been carefully chosen to not conflit with other options of other xargs utilities like GNU xargs. Reviewed by: jmallett
Diffstat (limited to 'usr.bin/xargs/xargs.1')
-rw-r--r--usr.bin/xargs/xargs.111
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/xargs/xargs.1 b/usr.bin/xargs/xargs.1
index 7c2f70b..a36edd1 100644
--- a/usr.bin/xargs/xargs.1
+++ b/usr.bin/xargs/xargs.1
@@ -45,7 +45,7 @@
.Nd "construct argument list(s) and execute utility"
.Sh SYNOPSIS
.Nm
-.Op Fl 0pt
+.Op Fl 0opt
.Op Fl E Ar eofstr
.Oo
.Fl I Ar replstr
@@ -192,6 +192,13 @@ arguments remaining for the last invocation of
The current default value for
.Ar number
is 5000.
+.It Fl o
+Reopen stdin as
+.Dq /dev/tty
+in the child process before executing the command.
+This is useful if you want
+.Nm
+to run an interactive application.
.It Fl P Ar maxprocs
Parallel mode: run at most
.Ar maxprocs
@@ -287,7 +294,7 @@ utility is expected to be
.St -p1003.2
compliant.
The
-.Fl J , P
+.Fl J , o , P
and
.Fl R
options are non-standard
OpenPOWER on IntegriCloud