Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: case matching to element in array?
- X-seq: zsh-users 5563
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: case matching to element in array?
- Date: Thu, 5 Dec 2002 17:38:17 +0000
- In-reply-to: <15363.1039097889@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <15363.1039097889@xxxxxxx>
On Dec 5, 2:18pm, Peter Stephenson wrote:
} Subject: Re: case matching to element in array?
}
} I worked out why I got confused before: the canonical form is
}
} (${(j:|:)~fred_list})
}
} and I was putting the ~ before the (j:|:), which is why it wasn't
} working.
Is there some reason why putting the tilde INSIDE the parens could not
be made to work as well?
${(j:|:~)fred_list} == ${(~j:|:)fred_list} == ${(j:|:)~fred_list}
--
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author