Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why doesn't READNULLCMD default to $PAGER?
- X-seq: zsh-workers 25789
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Why doesn't READNULLCMD default to $PAGER?
- Date: Wed, 1 Oct 2008 10:44:34 +0200
- Cc: "Zsh Workers" <zsh-workers@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=7rjFCmlyXuWE99dSL5QjfBc0Jr/7bT1zdePxsJe/SBg=; b=n5Yon9UpcSKQhCdKLNc1WIzvmtH5U6oWsxBeygUvVufBvdPuVwj8XIzZXlPsOUIUgM r5qT/NKFcFvLslwaUUGf8zn11htj0w/e/+s/D6NTtXgmcOt1XdQaLxtaJtEoQDdGSmrO XQnmfrrkbQSsWBEkckNskfsg6DJiK1jDO0srE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=p0hAffP7+7RN5/gjhBo4X4ib3qh5SrJmbTvZ2k41nyw3jKMAQ7PT3Gi8rv1Lv4cfxg P1LE685VzJ7W8tNM33GqbbgujaUJPMS2/2+UghvIdFN32zt9Nt4RQ4QsuxY8SFA0JBo+ ibp4LpsUp3ETD5G7dEvEVW2wOUKbVSxmLOEKc=
- In-reply-to: <080930230126.ZM32683@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <dbfc82860809301440y27a14351u173ccf9e415c389b@xxxxxxxxxxxxxx> <080930230126.ZM32683@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
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