From: Ralf Wildenhues Date: Sun, 12 Sep 2010 16:37:08 +0000 (+0200) Subject: docs: document zsh specialty with empty here-documents. X-Git-Tag: v2.68~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97d209ddb1ae2ccc0ac3c5272341252bbec39bed;p=thirdparty%2Fautoconf.git docs: document zsh specialty with empty here-documents. * doc/autoconf.texi (Here-Documents): zsh 4.3.10 adds a newline to empty here-docs. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 2c83e2b9..9431c94d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-09-13 Ralf Wildenhues + Gary V. Vaughan + + docs: document zsh specialty with empty here-documents. + * doc/autoconf.texi (Here-Documents): zsh 4.3.10 adds a newline + to empty here-docs. + 2010-09-13 Ralf Wildenhues docs: document zsh special array $options. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index f11f1dd8..71eefa40 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -14897,6 +14897,15 @@ fixed in @samp{ksh93g} (1998-04-30) but as of 2006 many operating systems were still shipping older versions with the bug. +Empty here-documents are not portable either; with the following code, +@command{zsh} up to at least version 4.3.10 creates a file with a single +newline, whereas other shells create an empty file: + +@example +cat >file <