zsh-workers
 help / color / mirror / code / Atom feed
* :r modifier
@ 2000-12-12 16:57 Alexandre Duret-Lutz
  2000-12-13  4:15 ` Bart Schaefer
  0 siblings, 1 reply; 20+ messages in thread
From: Alexandre Duret-Lutz @ 2000-12-12 16:57 UTC (permalink / raw)
  To: zsh-workers

Hi people!

Is the following behaviour correct?

  ~ % 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.

The corresponding documentation reads as follow.

  r
       Remove a trailing suffix of the form `.XXX', leaving the basename.

  e
       Remove all but the suffix.

  t    
       Remove all leading pathname components, leaving the tail.

I find it quite confusing: I don't think :r leaves the basename,
but this is what :t does!

Ciao,
-- 
Alexandre Duret-Lutz


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2001-02-19 10:32 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-12 16:57 :r modifier 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
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

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).