Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: :r modifier
- X-seq: zsh-workers 13266
- From: Alexandre Duret-Lutz <duret_g@xxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: :r modifier
- Date: 13 Dec 2000 20:21:17 +0100
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: "Bart Schaefer"'s message of "Wed, 13 Dec 2000 17:21:05 +0000"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: LRDE/EPITA http://www.lrde.epita.fr/
- References: <mvbzoi1shkr.fsf@xxxxxxxxxxxxxxxxxxxx> <1001213041501.ZM11124@xxxxxxxxxxxxxxxxxxxxxxx> <mvb8zpkpj5s.fsf@xxxxxxxxxxxxxxxxxxxx> <1001213172105.ZM12198@xxxxxxxxxxxxxxxxxxxxxxx>
- Sender: Alexandre Duret-Lutz <adl@xxxxxxxx>
>>> "Bart" == Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> writes:
[...]
Bart> You're assuming that :r is used exclusively on unix
Bart> file-paths and should employ unix file-path semantics,
Right, I'm shortsighted (didn't think at all about the
non-unix world -- does it *really* exist? :o)).
Bart> but parameter values are just strings.
But these modifers are somewhat useless on strings which are not
filenames, aren't they? :h and :t are documented to works on
`pathnames'; my wish is to document :e and :r as working on
`filename extesions'.
Bart> Suppose we change it to pay attention to slashes. Does
Bart> that mean that on cygwin it should also pay attention to
Bart> backslashes?
I'd say yes: stick to the filename definition used on the host
whenever possible. (Here I'm feeling that I ask too much!)
Bart> :Do we need to teach :h/:t about the leading-double-slash
Bart> convention for some networked file systems?
I don't know, I never seen such file systems. But I'm already
confused by the current behiavor of :h on repeated slashes:
% x=abc///def
% echo $x:h
abc//
% echo $x:h:h
abc/
(My dream is that repeated slashes would be treated as a single
slash; but I'm probably again assuming filesystem specific convention)
[...]
--
Alexandre Duret-Lutz
Messages sorted by:
Reverse Date,
Date,
Thread,
Author