zsh-workers
 help / color / mirror / code / Atom feed
* Possible bug with $~pattern, (#mi)
@ 2015-10-07 15:28 Sebastian Gniazdowski
  2015-10-07 15:39 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Gniazdowski @ 2015-10-07 15:28 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-07 16:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-07 15:28 Possible bug with $~pattern, (#mi) Sebastian Gniazdowski
2015-10-07 15:39 ` Peter Stephenson
2015-10-07 16:03   ` Bart Schaefer
2015-10-07 16:06   ` Sebastian Gniazdowski
2015-10-07 16:14     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).