Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Crash with =~ in script, but not interactively



"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