From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 524 invoked from network); 22 Mar 1999 08:08:46 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Mar 1999 08:08:46 -0000 Received: (qmail 17042 invoked by alias); 22 Mar 1999 08:07:33 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2227 Received: (qmail 17035 invoked from network); 22 Mar 1999 08:07:31 -0000 Date: Mon, 22 Mar 1999 09:07:28 +0100 (MET) Message-Id: <199903220807.JAA02960@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-users@sunsite.auc.dk In-reply-to: Sweth Chandramouli's message of Sat, 20 Mar 1999 13:50:56 -0500 Subject: Re: param modifier to strip _all_ suffixes? Sweth Chandramouli wrote: > is there a token modifier like :r that strips _all_ > suffixes of the form `.xxx', rather than just the last one--the > equivalent of ${PARAM%%.*} instead of just ${PARAM%.*}? perhaps, > if there isn't, :R could be given that meaning? Combine it with `f': % a=foo.a.b.c % echo $a:fr foo Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de