Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: :r modifier
- X-seq: zsh-workers 13277
- From: Alexandre Duret-Lutz <duret_g@xxxxxxxxxxxxx>
- To: mason@xxxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: :r modifier
- Date: 15 Dec 2000 11:22:21 +0100
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: mason@xxxxxxxxxxxxxxx's message of "14 Dec 2000 23:52:04 GMT"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: LRDE/EPITA http://www.lrde.epita.fr/
- References: <mvbzohy6f3g.fsf@xxxxxxxxxxxxxxxxxxxx> <slrn93in94.qqa.mason@xxxxxxxxxxxxxxxxxxxxx>
- Sender: Alexandre Duret-Lutz <adl@xxxxxxxx>
>>> "Geoff" == Geoff Wing <mason@xxxxxxxxxxxxxxx> writes:
[...]
Geoff> ? I don't expect :r to behave that way but I don't really use it
Geoff> much these days so maybe my objections have little weight.
Do you mean you prefer the current behavior or would like another?
: 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> I'm not sure the wording has cleared it up. The previous wording of
Geoff> "trailing suffix" [what's a non-trailing suffix? :-)]
:o)
Geoff> wasn't that good but what's the "root name"? (Can't
Geoff> think of anything better at the moment, sorry).
I can't think of anything better either. This is the
description used in the tcsh manual. The original `basename' is
clearly misleading; `root name' may require a definition, or
else the `leaving the root name' part can be removed. But at
least `root name' offers a mnemonic mean to remember what
thoses modifiers do (r-root e-extension h-head t-tail).
--
Alexandre Duret-Lutz
Messages sorted by:
Reverse Date,
Date,
Thread,
Author