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

Why approximate pattern doesn't match?



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



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