]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Document unquoted here-documents better
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Jul 2021 04:54:19 +0000 (23:54 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Jul 2021 04:55:45 +0000 (23:55 -0500)
commit7b1b9e4650d86c97f48323060b8dcfc18d8b5630
tree21095748b2d636f35f0d255ebf3a6c30676f4746
parentf982d9e4e14d84df4801a4354d508b2c66e6166e
Document unquoted here-documents better

Problem reported by Bruno Haible (sr #110518).
* doc/autoconf.texi (Generating Sources)
(Running the Preprocessor, Running the Compiler)
(Running the Linker, Runtime): Briefly mention that the program
snippets are expanded as unquoted here-documents.
(Here-Documents): Document escaping needed in unquoted
here-documents.  Remove mention of \" glitch in OpenBSD 2.7 sh;
that old system has not been supported for many years.
Remove advice that every \ must be quoted, as that sort
of quoting (though harmless) is not needed and is rarely done.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN, _AC_LANG_OPENMP(Fortran 77)):
* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Properly quote
code snippets.  The backslash-newline typos were harmless, and the
backslash-$ typo has unspecified behavior as per POSIX though the
typo is harmless on all shells I know of.  However, Autoconf
should follow its own quoting advice.
doc/autoconf.texi
lib/autoconf/c.m4
lib/autoconf/types.m4