summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>1999-04-06 19:27:50 +0000
committerTodd Rinaldo <toddr@cpanel.net>2019-10-19 07:03:08 -0500
commitecd2912d7ea6d6a6d18794059cd75e9fc0c0736f (patch)
tree28b52d252cc761e0e04c61c235d663f2fb072110
parent5a938dd089c049199cad44c148bf4e9f79e87e54 (diff)
downloadperl-ecd2912d7ea6d6a6d18794059cd75e9fc0c0736f.tar.gz
Set CDPATH="." only if it's already set to something else.
p4raw-id: //depot/maint-5.004/perl@3221
-rwxr-xr-xConfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/Configure b/Configure
index 42a071a0e3..9f462b5673 100755
--- a/Configure
+++ b/Configure
@@ -86,7 +86,10 @@ PATH=.$p_$PATH
export PATH
: This should not matter in scripts, but apparently it does, sometimes
-CDPATH='.'
+case "$CDPATH" in
+'') ;;
+*) CDPATH='.' ;;
+esac
: Sanity checks
if test ! -t 0; then