From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.6/8.7.3) with ESMTP id GAA05640 for ; Sun, 27 Oct 1996 06:17:19 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id PAA14893; Sat, 26 Oct 1996 15:10:06 -0400 (EDT) Resent-Date: Sat, 26 Oct 1996 15:01:11 -0400 (EDT) Sender: hniksic@public.srce.hr To: vlefevre@ens-lyon.fr (Vincent Lefevre) Cc: zsh-users@math.gatech.edu Subject: Re: null commands... References: <8668.199610261505@stone.dcs.warwick.ac.uk> <199610261833.UAA10316@boukha.ens-lyon.fr> X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/fetch/ X-Attribution: Hrv X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y" From: Hrvoje Niksic Date: 26 Oct 1996 20:01:04 +0100 In-Reply-To: vlefevre@ens-lyon.fr's message of Sat, 26 Oct 1996 20:33:45 +0200 Message-ID: X-Mailer: Red Gnus v0.52/XEmacs 19.14 Resent-Message-ID: <"EH4Y5.0.Xb3.t_bSo"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/465 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Vincent Lefevre (vlefevre@ens-lyon.fr) wrote: > This wouldn't always work. $PAGER may have arguments, e.g. "less -is". > But $READNULLCMD can't: [...] > Is it a bug? No, it's another gripe for READNULLCMD (regardless of $PAGER): It should be parsed as command-line string. So < file should be translated to ${=READNULLCMD} < file instead of $READNULLCMD < file, which is currently the case. With the $PAGER changes zsh would do the following: If READNULLCMD is non-empty, `< file' means `${=READNULLCMD} < file', else if PAGER is non-empty, `< file' means `${=PAGER} < file', else `< file' means `more < file'. I think this behaviour would be well-accepted by the users which generally set PAGER to whatever they like (e.g. less or "less -i"). Would it be hard to code to exec.c? -- } WWW: World-Wide-Waste. Waste management corporation, which } handles the billions of tons of garbage generated by just } about everybody these days. } You owe the Oracle a good book. In HyperText, please.