From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7066 invoked from network); 1 Oct 2008 08:45:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Oct 2008 08:45:27 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 36009 invoked from network); 1 Oct 2008 08:45:07 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Oct 2008 08:45:07 -0000 Received: (qmail 13982 invoked by alias); 1 Oct 2008 08:44:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25789 Received: (qmail 13960 invoked from network); 1 Oct 2008 08:44:47 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 1 Oct 2008 08:44:47 -0000 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.224]) by bifrost.dotsrc.org (Postfix) with ESMTP id 4A6EC8030847 for ; Wed, 1 Oct 2008 10:44:39 +0200 (CEST) Received: by wx-out-0506.google.com with SMTP id s10so105872wxc.3 for ; Wed, 01 Oct 2008 01:44:34 -0700 (PDT) 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= Received: by 10.150.143.5 with SMTP id q5mr11694653ybd.7.1222850674536; Wed, 01 Oct 2008 01:44:34 -0700 (PDT) Received: by 10.150.201.18 with HTTP; Wed, 1 Oct 2008 01:44:34 -0700 (PDT) Message-ID: Date: Wed, 1 Oct 2008 10:44:34 +0200 From: "Nikolai Weibull" Sender: nikolai.weibull@gmail.com To: "Bart Schaefer" Subject: Re: Why doesn't READNULLCMD default to $PAGER? Cc: "Zsh Workers" In-Reply-To: <080930230126.ZM32683@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <080930230126.ZM32683@torch.brasslantern.com> X-Google-Sender-Auth: 9f6a2030f29ca23f X-Virus-Scanned: ClamAV 0.92.1/8364/Wed Oct 1 09:11:44 2008 on bifrost X-Virus-Status: Clean On Wed, Oct 1, 2008 at 08:01, Bart Schaefer 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.