[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nonworking example in info-page
From: |
Paul Eggert |
Subject: |
Re: Nonworking example in info-page |
Date: |
Tue, 11 May 2010 16:43:38 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Ole Tange <address@hidden> writes:
> and then running above. That did not work. Probably because of quotes,
> spaces, < and > in filenames.
Yes, you're right, it was the quotes.
> find . -name '*.gz' -type f -print0 | parallel -0 -j+0 gunzip "<{}" ">{.}"
That would be nice, but it uses the "-print0" and "parallel" features
that are GNU-specific, and we try to keep that part of the manual
portable to any POSIX environment. Perhaps we need to add a new section
for the GNU stuff, but I installed the following for now, to fix the
immediate problem.
* doc/gzip.texi (Sample): Fix backslash quoting problem.
Problem reported by Ole Tange in
<http://lists.gnu.org/archive/html/bug-gzip/2010-05/msg00000.html>.
diff --git a/doc/gzip.texi b/doc/gzip.texi
index a6009d2..a7e72b8 100644
--- a/doc/gzip.texi
+++ b/doc/gzip.texi
@@ -228,7 +228,7 @@ stopping on the first failure:
find . -name '*
*' -prune -o -name '*.gz' -type f -print |
sed "
- s/'/'\\''/g
+ s/'/'\\\\''/g
s/^\\(.*\\)\\.gz$/gunzip <'\\1.gz' >'\\1'/
" |
sh -e