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

Possible bug with $~pattern, (#mi)



Hello,
first one and third one are the same, but only first invocation works.
Not sure if second one should work:

 # a="1234"; beg="#" echo ${a/$~beg(#mi)1/-}
-234
 # a="1234"; beg="#"; num=1; echo ${a/$~beg(#mi)$~num/-}
zsh: bad pattern: #(#mi)1
 # a="1234"; beg="#" echo ${a/$~beg(#mi)1/-}
zsh: bad pattern: #(#mi)1
 #


Best regards,
Sebastian Gniazdowski



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