From 8876aa855575c76fe5c85df0966371a59a0bbc8e Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sun, 25 Jul 1999 16:24:55 +0000 Subject: Fix a typo in #3725. p4raw-id: //depot/cfgperl@3743 --- utils/perlbug.PL | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/perlbug.PL b/utils/perlbug.PL index c25eec01c3..78d3f422b7 100644 --- a/utils/perlbug.PL +++ b/utils/perlbug.PL @@ -530,9 +530,11 @@ EOF my @env = qw(PATH LD_LIBRARY_PATH LANG PERL_BADLANG SHELL HOME LOGDIR LANGUAGE); push @env, $Config{ldlibpthname} if $Config{ldlibpthname} ne ''; - for my $env (sort @env, - grep /^(?:PERL|LC_)/, keys %ENV) - ) { + push @env, grep /^(?:PERL|LC_|LANG)/, keys %ENV; + my %env; + @env{@env} = @env; + for my $env (sort keys %env) { + { print OUT " $env", exists $ENV{$env} ? "=$ENV{$env}" : ' (unset)', "\n"; -- cgit v1.2.1