From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18428 invoked from network); 13 Dec 2000 04:15:28 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 13 Dec 2000 04:15:28 -0000 Received: (qmail 19425 invoked by alias); 13 Dec 2000 04:15:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13251 Received: (qmail 19416 invoked from network); 13 Dec 2000 04:15:20 -0000 From: "Bart Schaefer" Message-Id: <1001213041501.ZM11124@candle.brasslantern.com> Date: Wed, 13 Dec 2000 04:15:01 +0000 In-Reply-To: Comments: In reply to Alexandre Duret-Lutz ":r modifier" (Dec 12, 5:57pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Alexandre Duret-Lutz , zsh-workers@sunsite.auc.dk Subject: Re: :r modifier MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Dec 12, 5:57pm, Alexandre Duret-Lutz wrote: } Subject: :r modifier } } ~ % echo $MAIL } /home/adl/.procmail/spool/Inbox } ~ % echo $MAIL:r $MAIL:e } /home/adl/ procmail/spool/Inbox } } I was expecting to get $MAIL:r equal to $MAIL and $MAIL:e empty. Hrm. Well, it's correct in so far as it goes; the :r and :e modifiers appear to assume that they're already working on the result of :t, and pay no attention at all to slash characters; they just find the rightmost '.' and split on it. They've worked this way for as long as zsh has existed, AFAICT. Tcsh behaves the same, so I don't expect we'll be changing it any time soon. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net