From 13698e25548f0a303118128749afbd2101131add Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 28 Jul 2025 08:22:12 -0700 Subject: [PATCH] Quote $OLDPWD in doc Problem reported by Florian Weimer in: https://lists.gnu.org/r/autoconf/2025-07/msg00008.html --- doc/autoconf.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/autoconf.texi b/doc/autoconf.texi index c6b23c78e..ec7c48c7b 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -17880,7 +17880,7 @@ avoid it for the same reason they avoid @option{-P}. @evindex PWD POSIX says that a successful @command{cd} updates the values of the @env{OLDPWD} and @env{PWD} variables, and that @command{cd -} acts like -@command{cd $OLDPWD}. Older shells, such as Solaris 10 +@command{cd "$OLDPWD"}. Older shells, such as Solaris 10 @command{/bin/sh}, do not support this and portable scripts should not rely on it. -- 2.47.3