From 2efc2d2e33c0d44830da9adc1461e558ca051149 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <mail@bernhard-voelker.de>
Date: Fri, 31 Dec 2021 02:34:31 +0100
Subject: [PATCH] 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
---
 doc/find.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/find.texi b/doc/find.texi
index 5534c71a..1754f64d 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
 
 
-- 
2.34.1

