From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id EAA01588 for ; Fri, 2 Aug 1996 04:02:52 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id NAA10974; Thu, 1 Aug 1996 13:56:37 -0400 (EDT) Resent-Date: Thu, 1 Aug 1996 13:56:37 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199608011755.TAA00850@bolyai.cs.elte.hu> Subject: Re: More Configure problems To: pws@ifh.de (Peter Stephenson) Date: Thu, 1 Aug 1996 19:55:32 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199608011740.TAA03299@hydra.ifh.de> from Peter Stephenson at "Aug 1, 96 07:40:59 pm" Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368 X-Mailer: ELM [version 2.4ME+ PL16 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"vcdKA2.0.Oh2.K_E0o"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1880 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Peter wrote: > > Next problem with Configure... actually with the makedepend script > > that comes with it: this assignment is failing: > > > > defrule=`<$mf sed -n \ > > ... > > > > That first interestingly positioned <$mf (sometimes I wonder if people > > do this deliberately) is supposed to be a redirection, but zsh is > > treating it like $(<...). ksh behaves like sh here, i.e. only $(<...) > > has that behaviour. Perhaps we should follow suit. > > Well, there's only about one possible fix, as follows. The manual > page mentions $(<...) and specifically fails to mention `<...`, so I > think we're in line with that after the patch. No other Configure > problems that I've noticed. (This is actually non-trivial, if you > want to install perl on Linux without having to have bash around.) I'd prefer a different fix. I think it is better to parse each command substitution lexically and if it consists of a single redirection to stdin than behave as $(< file) behaves now. This is really preferrable since $(< file command) should execute the given command. That's the ksh behaviour and that's what required by POSIX. I'll try to write a patch for that. Zoltan