From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18482 invoked from network); 15 Dec 2000 10:59:07 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 15 Dec 2000 10:59:07 -0000 Received: (qmail 6851 invoked by alias); 15 Dec 2000 10:59:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13279 Received: (qmail 6844 invoked from network); 15 Dec 2000 10:59:00 -0000 Date: Fri, 15 Dec 2000 21:58:55 +1100 From: Geoff Wing To: Alexandre Duret-Lutz Cc: Zsh Hackers Subject: Re: PATCH: Re: :r modifier Message-ID: <20001215215855.A13677@primenet.com.au> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from duret_g@lrde.epita.fr on Fri, Dec 15, 2000 at 11:22:21AM +0100 Organization: PrimeNet Computer Consultancy Alexandre Duret-Lutz wrote about Re: PATCH: Re: :r modifier: :>>> "Geoff" == Geoff Wing writes: :Do you mean you prefer the current behavior or would like another? I'm used to the current behaviour but don't take my objections too seriously. I'm now leaning heavily towards your version's behaviour. I guess I can learn some new skills :-) % export FOO='foo.bar/baz' % tcsh -fc 'echo $FOO:r' foo.bar/baz % csh -fc 'echo $FOO:r' foo.bar/baz % bash -fc 'echo $FOO:r ${FOO:r}' foo.bar/baz:r foo.bar/baz % zsh -fc 'echo $FOO:r' foo % zsh-alexandre-patch -fc 'echo $FOO:r' foo.bar/baz :: item(tt(r))( ::-Remove a trailing suffix of the form `tt(.)var(xxx)', leaving the basename. ::+Remove a filename extension of the form `tt(.)var(xxx)', leaving ::+the root name. :: ) : Geoff> wasn't that good but what's the "root name"? (Can't : Geoff> think of anything better at the moment, sorry). My csh manual says: "Remove a trailing `.xxx' component, leaving the root name." so I guess it has precedent. :But at :least `root name' offers a mnemonic mean to remember what :thoses modifiers do (r-root e-extension h-head t-tail). Yes, I suppose "root name" should be sufficient and I don't really think we need to explain what it means (nobody else does). Regards, -- Geoff Wing : Rxvt Stuff : Zsh Stuff :