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>
---
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";