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 melb.werple.net.au (8.7.5/8.7.3) with ESMTP id IAA27404 for ; Tue, 28 May 1996 08:07:07 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA02167; Mon, 27 May 1996 18:00:25 -0400 (EDT) Resent-Date: Mon, 27 May 1996 18:00:25 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199605272200.AAA02506@bolyai.cs.elte.hu> Subject: Re: mailcheck patch To: aheading@jpmorgan.com (Anthony Heading) Date: Tue, 28 May 1996 00:00:46 +0200 (MET DST) Cc: zsh-workers@math.gatech.edu (Zsh workers list) In-Reply-To: <199605272004.VAA17880@gmp-etpres1.uk.jpmorgan.com> from Anthony Heading at "May 27, 96 09:04:19 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: <"vsOHP1.0.mX.uNYgn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1196 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > Zoltan wrote: > > I do not incorporate it now. Instead here is an other patch. After that, > > the message part of mailpath will undergo parameter expansion, command > > substitution and arithmetic substitution. This is exactly what ksh does. > > This can provide equivalent functionality to the requested feature. > > Fine by me. Just to check, though, is it clear that $_ will never clash with > its normal "special parameter" meaning? During the substitution the $_ special parameter expands to the name of the mail folder. The old value of $_ is saved before the expansion and restored afterwards. In command substitutions only the first command can use $_ this way but that is not a big limitation. Command substitutions are evaluated after a fork() and the change in $_ does not affect the parent process. Zoltan