From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19108 invoked from network); 5 Feb 2002 07:04:36 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 5 Feb 2002 07:04:36 -0000 Received: (qmail 26972 invoked by alias); 5 Feb 2002 07:04:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4644 Received: (qmail 26961 invoked from network); 5 Feb 2002 07:04:24 -0000 Subject: Re: $mailpath and Maildir From: Joakim Ryden To: zsh-users@sunsite.dk In-Reply-To: <20020205064019.GA28069@hq.newdream.net> References: <20020205064019.GA28069@hq.newdream.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-08smq/cg7wkmVW8Shrx0" X-Mailer: Evolution/1.0.1 Date: 04 Feb 2002 23:02:36 -0800 Message-Id: <1012892557.8896.3.camel@jo.cool.net> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS snapshot-20010714 --=-08smq/cg7wkmVW8Shrx0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable this "works for me[TM]": export MAILPATH=3D"$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? >=20 > from the zsh man page under "mailpath": >=20 > The message will undergo parameter expansion, command substitution > and arithmetic expansion with the variable $_ defined as the > name of the file that has changed. >=20 > however if i put: > mailpath=3D($HOME/Maildir\?"New mail." ~/mail/\?"New mail in $_. ") >=20 > in my .zshrc, > the message I get is: >=20 > New mail in path. >=20 > Same if i do something like: > mailpath=3D($HOME/Maildir\?"New mail." ~/mail/ndn:cron\?"New mail in $_."= ) >=20 > zugzug% echo $ZSH_VERSION > 4.0.4 >=20 > am i doing something wrong? if not, is there a way to make this work > anyway? >=20 > w >=20 --=-08smq/cg7wkmVW8Shrx0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA8X4OMMf4iPcNp4x8RAj9sAJ9hddyLaPodgflr5Ob27XPiaCCcDgCeIKoJ sWi+yxnTA8QKTRTsNKyw5GA= =il1B -----END PGP SIGNATURE----- --=-08smq/cg7wkmVW8Shrx0--