summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-24 01:29:33 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-24 01:29:33 +0000
commit69fcd688e15822470f504b6986735ca63bc62068 (patch)
tree338375970b24e2b13696af5f99275412c001ac59
parent5d23d6cde7d4284678e908dcee882c5f24dfa8f2 (diff)
downloadperl-69fcd688e15822470f504b6986735ca63bc62068.tar.gz
In Cygwin display the $ENV{CYGWIN} under perl -V, as suggested
by John Peacock. (Can be 'ntea' which means emulate UNIX file attribute semantics as much as possible, or 'ntsec' which uses native NTFS semantics.) (See also #10877.) p4raw-id: //depot/perl@10875
-rw-r--r--perl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 5951e2255c..ae2091f5e5 100644
--- a/perl.c
+++ b/perl.c
@@ -1152,7 +1152,12 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
#endif
sv_catpv(PL_Sv, "; \
$\"=\"\\n \"; \
-@env = map { \"$_=\\\"$ENV{$_}\\\"\" } sort grep {/^PERL/} keys %ENV; \
+@env = map { \"$_=\\\"$ENV{$_}\\\"\" } sort grep {/^PERL/} keys %ENV; ");
+#ifdef __CYGWIN__
+ sv_catpv(PL_Sv,"\
+push @env, \"CYGWIN=\\\"$ENV{CYGWIN}\\\"\";");
+#endif
+ sv_catpv(PL_Sv, "\
print \" \\%ENV:\\n @env\\n\" if @env; \
print \" \\@INC:\\n @INC\\n\";");
}