Michael G. Schwern [Wed, 6 Feb 2002 17:32:12 +0000 (12:32 -0500)]
Subject: [PATCH hints/os2.sh lib/perl5db.pl] Debugger to use proper pager
Message-ID: <
20020206223212.GG1346@blackrider>
p4raw-id: //depot/perl@14632
dieLevel($dieLevel);
signalLevel($signalLevel);
-&pager(
- (defined($ENV{PAGER})
- ? $ENV{PAGER}
- : ($^O eq 'os2'
- ? 'cmd /c more'
- : 'more'))) unless defined $pager;
+pager(
+ defined $ENV{PAGER} ? $ENV{PAGER} :
+ eval { require Config } &&
+ defined $Config::Config{pager} ? $Config::Config{pager}
+ : 'more'
+ ) unless defined $pager;
setman();
&recallCommand("!") unless defined $prc;
&shellBang("!") unless defined $psh;