PATCH: bug in perlbug w.r.t. environment variables
Jan D [Wed, 11 Jun 1997 00:00:00 +0000 (12:00 +1200)]
Here is patch for the problem, this adds sorting all of the environment
(I see little point in sorting just some).

p5p-msgid: 199705191857.VAA09154@alpha.hut.fi
Signed-off-by: Jarkko Hietaniemi <jhi@iki.fi>

utils/perlbug.PL

index 23acde4..00fad31 100644 (file)
@@ -481,10 +481,11 @@ EOF
 ---
 Environment for perl $]:
 EOF
-        for my $env (qw(PATH LD_LIBRARY_PATH),
-                    sort grep { /^(?:PERL|LC_)/ } keys %ENV,
-                    qw(LANG PERL_BADLANG
-                       SHELL HOME LOGDIR)) {
+        for my $env (sort
+                    (qw(PATH LD_LIBRARY_PATH
+                        LANG PERL_BADLANG
+                        SHELL HOME LOGDIR),
+                     grep { /^(?:PERL|LC_)/ } keys %ENV)) {
            print OUT "    $env",
                       exists $ENV{$env} ? "=$ENV{$env}" : ' (unset)',
                      "\n";