Re: pager changed after upgrade from woody to sarge:
Bob,
you're right. after trying the 'ps -efH', i can
verify that bash is using the built-in pager and not
/bin/more.
> If you are seeing differences I am guessing it has
to > do with bash and libreadline upgrades combined
with
> your own personal readline configuration.
my /etc/inputrc (without comments) is:
set input-meta on
set output-meta on
so, i don't think my readline configuration is the
cause.
just curious, what version(s) of bash and libreadline
do you have installed on your sarge machine. i have
bash (version 2.05b-26)
libreadline4 (version 4.3-11)
libreadline5 (version 5.0-10)
thanks.
--- Bob Proulx <bob@proulx.com> wrote:
> James Haskell wrote:
> > i just upgraded from woody to sarge, and it
> *seems*
> > that in the process, my pager has changed from
> > /usr/bin/less to /bin/more.
> > e.g. if i type:
> > cd /usr/include/ <tab> <tab>
> > bash displays:
> > Display all 370 possibilities? (y or n)
> > when i type y, bash lists the files using
> /bin/more.
>
> Are you sure that it is /bin/more and not the bash
> readline built-in
> pager? The documentation for readline which is used
> by bash says
> this:
>
> page-completions (On)
> If set to On, readline uses an
> internal more-like pager to
> display a screenful of possible
> completions at a time.
>
> I believe you are seeing the built-in pager and not
> the external one.
> I do not think bash spawns an external pager for
> this operation.
>
> > chase `which pager` says that /usr/bin/pager
> points to
> > /usr/bin/less.
>
> No need to chase. Just use ask the system.
>
> update-alternatives --display pager
>
> > how do i get less to be my default pager? and am
> i
> > correct in concluding that the upgrade changed my
> pager?
>
> I think you are incorrect. I do not believe bash is
> using an external
> pager. I just now tested a woody and a sarge system
> and could not see
> any noticeable difference in how bash operates with
> regards to
> completion. If you are seeing differences I am
> guessing it has to do
> with bash and libreadline upgrades combined with
> your own personal
> readline configuration.
>
> For me both used the bash readline internal built-in
> pager. It says
> "--more--" but that does not mean it is using the
> /bin/more external
> program. It is using the built-in. You can verify
> this for yourself
> by looking at the 'ps -efH' output and seeing that
> your command shell
> is not spawning any external commands while in the
> built-in pager.
> (Hint: Use the tty to find the other bash shell.)
>
> Bob
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Reply to: