From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12597 invoked from network); 12 Dec 2000 16:50:46 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Dec 2000 16:50:46 -0000 Received: (qmail 4368 invoked by alias); 12 Dec 2000 16:50:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13249 Received: (qmail 4361 invoked from network); 12 Dec 2000 16:50:34 -0000 To: zsh-workers@sunsite.auc.dk Subject: :r modifier From: Alexandre Duret-Lutz X-Home-Page: http://www.epita.fr/~duret_g/ X-Attribution: adl Organization: LRDE/EPITA http://www.lrde.epita.fr/ Date: 12 Dec 2000 17:57:40 +0100 Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Alexandre Duret-Lutz Hi people! Is the following behaviour correct? ~ % 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. The corresponding documentation reads as follow. r Remove a trailing suffix of the form `.XXX', leaving the basename. e Remove all but the suffix. t Remove all leading pathname components, leaving the tail. I find it quite confusing: I don't think :r leaves the basename, but this is what :t does! Ciao, -- Alexandre Duret-Lutz