From: Paul Eggert Date: Mon, 28 Jul 2025 15:22:12 +0000 (-0700) Subject: Quote $OLDPWD in doc X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13698e25548f0a303118128749afbd2101131add;p=thirdparty%2Fautoconf.git Quote $OLDPWD in doc Problem reported by Florian Weimer in: https://lists.gnu.org/r/autoconf/2025-07/msg00008.html --- 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.