diff options
| author | Bernhard Voelker <mail@bernhard-voelker.de> | 2021-12-31 02:34:31 +0100 |
|---|---|---|
| committer | Bernhard Voelker <mail@bernhard-voelker.de> | 2021-12-31 02:34:31 +0100 |
| commit | 2efc2d2e33c0d44830da9adc1461e558ca051149 (patch) | |
| tree | ee08751001fecbf619173692f79cdd97147f4e27 | |
| parent | 71556793c19bfa01d5f7d66833b0564cfcac3879 (diff) | |
| download | findutils-2efc2d2e33c.tar.gz | |
doc: fix 'xargs --open-tty' example
doc/find.texi (xargs options): Change 'grep -lz' to 'grep -lZ' as
input for 'xargs -0o' as only the latter will write a NUL after
each file name. Add -n1 to the xargs call.
Reported by Robin A. Meade in
https://savannah.gnu.org/bugs/?61341
| -rw-r--r-- | doc/find.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/find.texi b/doc/find.texi index 5534c71..1754f64 100644 --- a/doc/find.texi +++ b/doc/find.texi @@ -3941,7 +3941,7 @@ the command, thus allowing that command to be associated to the terminal while @code{xargs} reads from a different stream, e.g. from a pipe. This is useful if you want @code{xargs} to run an interactive application. @example -grep -lz PATTERN * | xargs -0o vi +grep -lZ PATTERN * | xargs -0o -n1 vi @end example |
