From: Eric Blake Date: Wed, 13 Jan 2010 16:46:35 +0000 (-0700) Subject: Fix previous example. X-Git-Tag: v2.66~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56f5b9bc6a3a4a4dccea38005e211066d1ba96cd;p=thirdparty%2Fautoconf.git Fix previous example. * doc/autoconf.texi (Here-Documents): Touch up the example to match output to sample command line. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 3fa0c5d78..1719deb93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-01-13 Eric Blake + Fix previous example. + * doc/autoconf.texi (Here-Documents): Touch up the example to + match output to sample command line. + Document here-doc pitfall. * doc/autoconf.texi (Here-Documents): Mention problem with <<- operator. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 31550fd5a..1549f8955 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -14698,13 +14698,15 @@ spaces (not all shells are nice enough to warn about unterminated here-documents). @example -$ @kbd{printf 'cat <<-x\n\t1\n\t 2\n\tx\n' | bash && echo oops} +$ @kbd{printf 'cat <<-x\n\t1\n\t 2\n\tx\n' | bash && echo done} 1 2 -$ @kbd{printf 'cat <<-x\n 1\n 2\n x\n' | bash-3.2 && echo oops} +done +$ @kbd{printf 'cat <<-x\n 1\n 2\n x\n' | bash-3.2 && echo done} 1 2 x +done @end example @node File Descriptors