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

Re: PATCH: 3.1.6-pws-4: backreferences



In article <9909141345.AA24591@xxxxxxxxxxxxxxxxx>,
  Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> writes:

> - The (#b) globbing flag turns on backreferencing.

I found a problem with this.

Z(2):akr@is27e1u11% Src/zsh -f
is27e1u11% setopt extendedglob
is27e1u11% a=abcdef
is27e1u11% echo ${a/(#b)a(?)c/$match[1]}        
def

It should be `bdef'. Since second time, it works well.

is27e1u11% echo ${a/(#b)a(?)c/$match[1]}        
bdef
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author