From b1bd7b621fd37b3b4e104b819d4c1fa19b7fbfac Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 8 Mar 2013 09:22:48 -0800 Subject: [PATCH] doc: explain why single-quoting is better * doc/autoconf.texi (Build Directories): Explain single-quoting. Reported by Markus Elfring in . --- doc/autoconf.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/autoconf.texi b/doc/autoconf.texi index bf4823d..c54c5b3 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -3148,7 +3148,10 @@ versions of @command{make} do not set @code{$<} in explicit rules; they expand it to an empty value. Instead, Make command lines should always refer to source -files by prefixing them with @samp{$(srcdir)/}. For example: +files by prefixing them with @samp{$(srcdir)/}. It's safer +to quote the source directory name, in case it contains characters that +are special to the shell. Because @samp{$(srcdir)} is expanded by Make, +single-quoting works and is safer than double-quoting. For example: @example time.info: time.texinfo -- 1.7.11.7