diff options
| author | Andreas Metzler <ametzler@bebt.de> | 2017-06-05 15:15:42 +0200 |
|---|---|---|
| committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2017-06-09 00:44:42 +0200 |
| commit | 3e4bb112ae70b5e1e08379f43d910803bcef8db0 (patch) | |
| tree | 6c16e181ee1799cbd3130ebf4bd7941db3a344de | |
| parent | 40cd25147b4461979c0d992299f2c101f9034f7a (diff) | |
| download | findutils-3e4bb112ae.tar.gz | |
doc: drop workarounds for missing xargs -o option
* doc/find.texi (Multiple Files): Mention the new --open-tty option
to be used as an alternative.
(Safe File Name Handling): Likewise.
* xargs/xargs.1 (EXAMPLES): Remove the tty redirection example.
| -rw-r--r-- | doc/find.texi | 7 | ||||
| -rw-r--r-- | xargs/xargs.1 | 12 |
2 files changed, 4 insertions, 15 deletions
diff --git a/doc/find.texi b/doc/find.texi index 4516b64..8d2f35c 100644 --- a/doc/find.texi +++ b/doc/find.texi @@ -2287,8 +2287,8 @@ find $HOME -name '*.c' -print | xargs grep -l sprintf However, if the command needs to have its standard input be a terminal (@code{less}, for example), you have to use the shell command -substitution method or use the @samp{--arg-file} option of -@code{xargs}. +substitution method or use either the @samp{--arg-file} option or the +@samp{--open-tty} option of @code{xargs}. The @code{xargs} command will process all its input, building command lines and executing them, unless one of the commands exits with a @@ -2392,7 +2392,8 @@ As of findutils version 4.2.4, the @code{locate} program also has a If you want to be able to handle file names safely but need to run commands which want to be connected to a terminal on their input, you -can use the @samp{--arg-file} option to @code{xargs} like this: +can use the @samp{--open-tty} option to @code{xargs} or the +@samp{--arg-file} option to @code{xargs} like this: @example find / -name xyzzy -print0 > list diff --git a/xargs/xargs.1 b/xargs/xargs.1 index f66dbc0..3bedd67 100644 --- a/xargs/xargs.1 +++ b/xargs/xargs.1 @@ -347,18 +347,6 @@ process). .fi Generates a compact listing of all the users on the system. -.P -.nf -.B xargs sh -c 'emacs \(dq$@\(dq < /dev/tty' emacs - -.fi -Launches the minimum number of copies of Emacs needed, one after the -other, to edit the files listed on -.BR xargs ' -standard input. This example achieves the same effect as BSD's -.B -o -option, but in a more flexible and portable way. - .SH "EXIT STATUS" |
