From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Alexandre Duret-Lutz <duret_g@lrde.epita.fr>, zsh-workers@sunsite.auc.dk
Subject: Re: :r modifier
Date: Wed, 13 Dec 2000 04:15:01 +0000 [thread overview]
Message-ID: <1001213041501.ZM11124@candle.brasslantern.com> (raw)
In-Reply-To: <mvbzoi1shkr.fsf@phobos.lrde.epita.fr>
On Dec 12, 5:57pm, Alexandre Duret-Lutz wrote:
} Subject: :r modifier
}
} ~ % echo $MAIL
} /home/adl/.procmail/spool/Inbox
} ~ % echo $MAIL:r $MAIL:e
} /home/adl/ procmail/spool/Inbox
}
} I was expecting to get $MAIL:r equal to $MAIL and $MAIL:e empty.
Hrm. Well, it's correct in so far as it goes; the :r and :e modifiers
appear to assume that they're already working on the result of :t, and
pay no attention at all to slash characters; they just find the rightmost
'.' and split on it. They've worked this way for as long as zsh has
existed, AFAICT.
Tcsh behaves the same, so I don't expect we'll be changing it any time
soon.
--
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 4:15 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 [this message]
2000-12-13 13:03 ` Alexandre Duret-Lutz
2000-12-13 17:21 ` Bart Schaefer
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=1001213041501.ZM11124@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=duret_g@lrde.epita.fr \
--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).