diff options
author | Craig A. Berry <craigberry@mac.com> | 2014-08-08 09:20:23 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2014-08-08 11:50:55 -0500 |
commit | bc6f2746c1999c5e2645423e6c4ab456c68ba8e1 (patch) | |
tree | 8f3d78d4dcfcfcd41e7d8730af15e4b493c2b26a /vms | |
parent | 4cedf205aa6e2a77d2a318f977b61a5f317b5d7b (diff) | |
download | perl-bc6f2746c1999c5e2645423e6c4ab456c68ba8e1.tar.gz |
Reverse order of environ tables under bash on VMS.
The default for populating %ENV on VMS is from logical names
first and the CRTL environ array second unless overridden by
setting PERL_ENV_TABLES. That's a reasonable default for DCL,
but not quite right when running under bash as exports under bash
might end up hidden behind logical names. So reverse the default
order when GNV$UNIX_SHELL is set.
Also stop mentioning that setenv() may not be present in the CRTL
since it is present for VMS versions 7.0 and later and those are
the only ones we support.
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -14052,6 +14052,9 @@ vmsperl_set_features(void) set_feature_default("DECC$DISABLE_POSIX_ROOT", 0); vms_unlink_all_versions = 1; vms_posix_exit = 1; + /* Reverse default ordering of PERL_ENV_TABLES. */ + defenv[0] = &crtlenvdsc; + defenv[1] = &fildevdsc; } /* Some reasonable defaults that are not CRTL defaults */ set_feature_default("DECC$EFS_CASE_PRESERVE", 1); |