zsh-users
 help / color / mirror / code / Atom feed
* $mailpath and Maildir
@ 2002-02-05  6:40 Will Yardley
  2002-02-05  7:02 ` Joakim Ryden
  0 siblings, 1 reply; 4+ messages in thread
From: Will Yardley @ 2002-02-05  6:40 UTC (permalink / raw)
  To: zsh-users

is there any way to make expansion of the directory name (using $_) work
properly with Maildir folders?

from the zsh man page under "mailpath":

   The message  will  undergo parameter expansion, command substitution
   and  arithmetic  expansion  with  the variable  $_  defined  as the
   name of the file that has changed.

however if i put:
mailpath=($HOME/Maildir\?"New mail." ~/mail/\?"New mail in $_. ")

in my .zshrc,
the message I get is:

New mail in path.

Same if i do something like:
mailpath=($HOME/Maildir\?"New mail." ~/mail/ndn:cron\?"New mail in $_.")

zugzug% echo $ZSH_VERSION
4.0.4

am i doing something wrong? if not, is there a way to make this work
anyway?

w


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

* Re: $mailpath and Maildir
  2002-02-05  6:40 $mailpath and Maildir Will Yardley
@ 2002-02-05  7:02 ` Joakim Ryden
  2002-02-05  7:08   ` Will Yardley
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Ryden @ 2002-02-05  7:02 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]

this "works for me[TM]":

export MAILPATH="$HOME/Maildir?You have new mail in
\$_.:$HOME/Maildir/.maildir2?You have new mail in
\$_.:$HOME/Maildir/.maildir3?You have new mail in
\$_.:$HOME/Maildir/.maildir4?You have new mail in
\$_.:$HOME/Maildir/.maildir5?You have new mail in
\$_.:$HOME/Maildir/.maildir6?You have new mail in \$_."

zsh 4.0.4

--Jo


On Mon, 2002-02-04 at 22:40, Will Yardley wrote:
> is there any way to make expansion of the directory name (using $_) work
> properly with Maildir folders?
> 
> from the zsh man page under "mailpath":
> 
>    The message  will  undergo parameter expansion, command substitution
>    and  arithmetic  expansion  with  the variable  $_  defined  as the
>    name of the file that has changed.
> 
> however if i put:
> mailpath=($HOME/Maildir\?"New mail." ~/mail/\?"New mail in $_. ")
> 
> in my .zshrc,
> the message I get is:
> 
> New mail in path.
> 
> Same if i do something like:
> mailpath=($HOME/Maildir\?"New mail." ~/mail/ndn:cron\?"New mail in $_.")
> 
> zugzug% echo $ZSH_VERSION
> 4.0.4
> 
> am i doing something wrong? if not, is there a way to make this work
> anyway?
> 
> w
> 


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: $mailpath and Maildir
  2002-02-05  7:02 ` Joakim Ryden
@ 2002-02-05  7:08   ` Will Yardley
  2002-02-05  9:01     ` Joakim Ryden
  0 siblings, 1 reply; 4+ messages in thread
From: Will Yardley @ 2002-02-05  7:08 UTC (permalink / raw)
  To: zsh-users

Joakim Ryden wrote:
> this "works for me[TM]":
> 
> export MAILPATH="$HOME/Maildir?You have new mail in
> \$_.:$HOME/Maildir/.maildir2?You have new mail in
> \$_.:$HOME/Maildir/.maildir3?You have new mail in
> \$_.:$HOME/Maildir/.maildir4?You have new mail in
> \$_.:$HOME/Maildir/.maildir5?You have new mail in
> \$_.:$HOME/Maildir/.maildir6?You have new mail in \$_."

d'oh.... just needed to escape the "$".  you may all give me 50 lashes
with a wet noodle now.

w


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

* Re: $mailpath and Maildir
  2002-02-05  7:08   ` Will Yardley
@ 2002-02-05  9:01     ` Joakim Ryden
  0 siblings, 0 replies; 4+ messages in thread
From: Joakim Ryden @ 2002-02-05  9:01 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

this probably is in some document somewhere but i remember when i set my
maildirs up it wasn't totally obvious to me that you had to escape the
$.

--Jo


On Mon, 2002-02-04 at 23:08, Will Yardley wrote:
> Joakim Ryden wrote:
> > this "works for me[TM]":
> > 
> > export MAILPATH="$HOME/Maildir?You have new mail in
> > \$_.:$HOME/Maildir/.maildir2?You have new mail in
> > \$_.:$HOME/Maildir/.maildir3?You have new mail in
> > \$_.:$HOME/Maildir/.maildir4?You have new mail in
> > \$_.:$HOME/Maildir/.maildir5?You have new mail in
> > \$_.:$HOME/Maildir/.maildir6?You have new mail in \$_."
> 
> d'oh.... just needed to escape the "$".  you may all give me 50 lashes
> with a wet noodle now.
> 
> w
> 


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

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

end of thread, other threads:[~2002-02-05  9:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-05  6:40 $mailpath and Maildir Will Yardley
2002-02-05  7:02 ` Joakim Ryden
2002-02-05  7:08   ` Will Yardley
2002-02-05  9:01     ` Joakim Ryden

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