zsh-workers
 help / color / mirror / code / Atom feed
* Why doesn't READNULLCMD default to $PAGER?
@ 2008-09-30 21:40 Nikolai Weibull
  2008-10-01  6:01 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Nikolai Weibull @ 2008-09-30 21:40 UTC (permalink / raw)
  To: Zsh Workers

Why doesn't READNULLCMD default to $PAGER instead of more?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Why doesn't READNULLCMD default to $PAGER?
  2008-09-30 21:40 Why doesn't READNULLCMD default to $PAGER? Nikolai Weibull
@ 2008-10-01  6:01 ` Bart Schaefer
  2008-10-01  8:44   ` Nikolai Weibull
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2008-10-01  6:01 UTC (permalink / raw)
  To: Zsh Workers

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Why doesn't READNULLCMD default to $PAGER?
  2008-10-01  6:01 ` Bart Schaefer
@ 2008-10-01  8:44   ` Nikolai Weibull
  2008-10-01 13:21     ` Richard Hartmann
  0 siblings, 1 reply; 4+ messages in thread
From: Nikolai Weibull @ 2008-10-01  8:44 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Zsh Workers

On Wed, Oct 1, 2008 at 08:01, Bart Schaefer <schaefer@brasslantern.com> 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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Why doesn't READNULLCMD default to $PAGER?
  2008-10-01  8:44   ` Nikolai Weibull
@ 2008-10-01 13:21     ` Richard Hartmann
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Hartmann @ 2008-10-01 13:21 UTC (permalink / raw)
  To: Nikolai Weibull; +Cc: Bart Schaefer, Zsh Workers

On Wed, Oct 1, 2008 at 10:44, Nikolai Weibull <now@bitwi.se> wrote:

> 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.

Off topic, but if you are using most instead of less just for color
support, you might find happiness with


    if [ $terminfo[colors] -ge 8 ]
    then
        export LESS_TERMCAP_mb=$'\E[01;31m'
        export LESS_TERMCAP_md=$'\E[01;31m'
        export LESS_TERMCAP_me=$'\E[0m'
        export LESS_TERMCAP_se=$'\E[0m'
        export LESS_TERMCAP_so=$'\E[01;44;33m'
        export LESS_TERMCAP_ue=$'\E[0m'
        export LESS_TERMCAP_us=$'\E[01;32m'
    fi


Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-01 13:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-30 21:40 Why doesn't READNULLCMD default to $PAGER? Nikolai Weibull
2008-10-01  6:01 ` Bart Schaefer
2008-10-01  8:44   ` Nikolai Weibull
2008-10-01 13:21     ` Richard Hartmann

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).