Tiny Core Base > TCB Bugs
perl pager
Juanito:
--- Code: ---/usr/local/lib/perl5/5.32/core_perl/Config_heavy.pl:pager='/usr/bin/less -isR'
--- End code ---
polikuo:
--- Quote from: Juanito on April 09, 2021, 01:49:46 AM ---I've never used the perl pager - does it work as expected if Config_heavy.pl is modified
--- End quote ---
Neither have I.
I was just practicing the art of building the tool chain and got concerned with that setting.
Juanito:
I'd propose, subject to somebody testing the perl pager, that it is set to "/usr/bin/less" the next time the perl extension is built.
polikuo:
I've been trying to find a way to test this with no luck.
So I'm just posting what I've done here.
While I'm not 100% sure the module I'm using is the one that called less, but the manual is pretty intriguing.
Here are the steps:
--- Code: ---$ tce-load -i compiletc cpanm
$ cd ~
$ rm -fr .cpan .cpanm perl5
$ cpan
Would you like to configure as much as possible automatically?
(Press Enter)
What approach do you want? (Choose 'local::lib', 'sudo' or 'manual')
(Press Enter)
install IO::Pager
install IO::Pager
exit
--- End code ---
Note that I have to install the pager twice because the first time always fails.
The procedures may be questionable as I'm inexperienced with perl.
Edit: I can't post the script due to the server error.
The "Pager" looks fine, so I check the PID.
"ps" shows that perl called "less" in a different way.
Juanito:
Recompiled perl5 posted for you to play with :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version