From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: Re: :r modifier
Date: Wed, 13 Dec 2000 17:21:05 +0000 [thread overview]
Message-ID: <1001213172105.ZM12198@candle.brasslantern.com> (raw)
In-Reply-To: <mvb8zpkpj5s.fsf@phobos.lrde.epita.fr>
On Dec 13, 2:03pm, Alexandre Duret-Lutz wrote:
} Subject: Re: :r modifier
}
} >>> "Bart" == Bart Schaefer <schaefer@candle.brasslantern.com> writes:
}
} Bart> Tcsh behaves the same, so I don't expect we'll be
} Bart> changing it any time soon.
}
} Oh, I didn't know this was a tcsh heritage (this can explain
} lots of things :o)).
Actually, it's likely straight 4.[23] BSD csh heritage, not via tcsh, but
I don't have a copy of 4.x BSD sitting around to confirm that.
} I believe this weakness makes :r error-prone (who *needs* to
} ignore slashes?).
You're assuming that :r is used exclusively on unix file-paths and should
employ unix file-path semantics, but parameter values are just strings.
Suppose we change it to pay attention to slashes. Does that mean that on
cygwin it should also pay attention to backslashes? Do we need to teach
:h/:t about the leading-double-slash convention for some networked file
systems?
} [To get] $MAIL:r, I have to write something like:
}
} echo $MAIL:h/$MAIL:t:r
} (this assumes that the dirname is non-empty).
There's always ${MAIL%.[^/]#} ...
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
next prev parent reply other threads:[~2000-12-13 17:21 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-12 16:57 Alexandre Duret-Lutz
2000-12-13 4:15 ` Bart Schaefer
2000-12-13 13:03 ` Alexandre Duret-Lutz
2000-12-13 17:21 ` Bart Schaefer [this message]
2000-12-13 19:21 ` Alexandre Duret-Lutz
2000-12-13 23:10 ` Thomas Köhler
2000-12-14 13:00 ` Andrej Borsenkow
2000-12-14 14:14 ` Alexandre Duret-Lutz
2000-12-14 14:43 ` Andrej Borsenkow
2000-12-14 18:18 ` PATCH: " Alexandre Duret-Lutz
2000-12-14 23:52 ` Geoff Wing
2000-12-15 10:22 ` Alexandre Duret-Lutz
2000-12-15 10:58 ` Geoff Wing
2000-12-15 10:27 ` Peter Stephenson
2000-12-15 21:30 ` Thomas Köhler
2000-12-15 11:53 ` Alexandre Duret-Lutz
2001-02-14 18:34 ` Alexandre Duret-Lutz
2001-02-14 18:40 ` Peter Stephenson
2001-02-14 19:44 ` Bart Schaefer
2001-02-19 10:32 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1001213172105.ZM12198@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).