Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Crash with =~ in script, but not interactively
- X-seq: zsh-workers 24358
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Crash with =~ in script, but not interactively
- Date: Fri, 04 Jan 2008 15:47:22 +0000
- In-reply-to: <237967ef0801040738q3a3287ffy1994fe4b0d6155e4@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0801040127k49e92485rf09ce72c47d076c5@xxxxxxxxxxxxxx> <20080104144237.0eac6c2b@news01> <237967ef0801040738q3a3287ffy1994fe4b0d6155e4@xxxxxxxxxxxxxx>
"Mikael Magnusson" wrote:
> Yep that worked. Does the =~ operator support backreferences? I didn't
> find anything searching through the manual for the word. This is what
> I ended up with instead which works too:
It uses $MATCH and $match in the same way (no flags required), unless
the option BASH_REMATCH is set in which case it uses the array
$BASH_REMATCH. See the description of =~ in zshmisc.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author