Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Why doesn't READNULLCMD default to $PAGER?



On Wed, Oct 1, 2008 at 08:01, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sep 30, 11:40pm, Nikolai Weibull wrote:
> }
> } Why doesn't READNULLCMD default to $PAGER instead of more?
>
> Because $PAGER is not a variable set or used by the shell.

Well, is there some security concern in Zsh reading it?  Why not
initialize READNULLCMD as follows (converted to equivalent C code, of
course)?

READNULLCMD=${PAGER:-more}

I mean, I set PAGER because I don't want more(1) (or less(1) for that
matter) to be invoked by most other programs that need a PAGER.



Messages sorted by: Reverse Date, Date, Thread, Author