Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Why approximate pattern doesn't match?
- X-seq: zsh-users 21525
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Why approximate pattern doesn't match?
- Date: Mon, 9 May 2016 22:07:40 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=bz6YEafkOg2HW+39+fvL+JnK7cKASysAkcjzBiaoK4o=; b=Ax9AFFGmF5MXNY9kZLLHXtbiq6m01dLZPnX0SfJkQw7Z1Hnjae3M+CsWwZCG3Wi+rQ MOrb8ybybhG4mhRpc1Yt9syelB7Z/vv2/etWfh7ZFMPYWIc+MjGOpsTn97WvmswFKBqU /WkYMQs1Vcib5vqM1z/3qkStThDu6Q7Jpa+794Zp16A8z6XVTqivwMYW16o0E5hA/qWF JHK5yOQmGk7keZXrZJF8gVr5A+0fFuR4wAcqlqCKAaHNH8B6rVEB0nbWprkVTDpPypJk VlkANRzRvFI8QWPe1hbz80AJA5NjIF0lZGwt+WEJ3USE+gePijyuGKQGgT18ezWcy7Ty INng==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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