zsh-users
 help / color / mirror / code / Atom feed
* Why approximate pattern doesn't match?
@ 2016-05-09 20:07 Sebastian Gniazdowski
  2016-05-09 20:11 ` Sebastian Gniazdowski
  0 siblings, 1 reply; 11+ messages in thread
From: Sebastian Gniazdowski @ 2016-05-09 20:07 UTC (permalink / raw)
  To: Zsh Users

Hello,

a=( "git commit amend" )
pattern1='git*~^*comit*~^*amend'
pattern2='git*~^*commit*~^*amend'
echo "${(@M)a:#(#ia2)*$~pattern1*}"
-> [nothing]
echo "${(@M)a:#(#ia2)*$~pattern2*}"
-> git commit amend

Does somebody know why a2 isn't sufficient to match "comit" against "commit" ?

Best regards,
Sebastian Gniazdowski


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

end of thread, other threads:[~2016-05-10 18:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-09 20:07 Why approximate pattern doesn't match? Sebastian Gniazdowski
2016-05-09 20:11 ` Sebastian Gniazdowski
2016-05-10  3:56   ` Bart Schaefer
2016-05-10  5:16     ` Sebastian Gniazdowski
2016-05-10 15:05       ` Peter Stephenson
2016-05-10 15:21         ` Sebastian Gniazdowski
2016-05-10 15:40           ` Peter Stephenson
2016-05-10 17:16             ` Sebastian Gniazdowski
2016-05-10 17:29               ` Sebastian Gniazdowski
2016-05-10 18:12                 ` Bart Schaefer
2016-05-10 16:42     ` Mikael Magnusson

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).