* doc/autoconf.texi (Here-Documents): Using a command substitution
in a here-documents being fed to a shell function is unportable.
Problem revealed by the automake testsuite:
<http://lists.gnu.org/archive/html/automake-patches/2011-12/msg00149.html>
+2011-12-24 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ docs: issue with shell functions and here-documents on Solaris
+ * doc/autoconf.texi (Here-Documents): Using a command substitution
+ in a here-documents being fed to a shell function is unportable.
+ Problem revealed by the automake testsuite:
+ <http://lists.gnu.org/archive/html/automake-patches/2011-12/msg00149.html>
+
2011-12-26 Paul Eggert <eggert@cs.ucla.edu>
AS_LN_S: fall back on 'cp -pR' (not 'cp -p') if 'ln -s' fails
@end group
@end example
+Using command substitutions in a here-document that is fed to a shell
+function is not portable. For example, with Solaris 10 @command{/bin/sh}:
+
+@example
+$ @kbd{kitty () @{ cat; @}}
+$ @kbd{kitty <<EOF
+> `echo ok`
+> EOF}
+/tmp/sh199886: cannot open
+$ @kbd{echo $?}
+1
+@end example
+
Some shells mishandle large here-documents: for example,
Solaris 10 @command{dtksh} and the UnixWare 7.1.1 Posix shell, which are
derived from Korn shell version M-12/28/93d, mishandle braced variable