Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Unexpected behavior from _match completer
- X-seq: zsh-users 11647
- From: "Matt Wozniski" <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Unexpected behavior from _match completer
- Date: Mon, 16 Jul 2007 03:25:51 -0400
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=W5Eh38/m4P9eE3GwEa8OZ3pWa29L/W+aoeAqqqBhNclwThJ4Opx88ouDGxxZKfqfZE60mO7qG4WOgDTNc39kLD8HgSxx42evsuh+NZKPch6Ddx19SI/eFRHqeyS9ZIBnDGZHePE3cNem6uKDbEwpuNA8pYs0nzjqLePL+6VGBW4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=j/EhAh5snw4hdofWsKZ9HR5ii6t6knr2VIE8Xl4Nl+EkeGTPAZEYn/lkaVDexE8kKWM/v/4h1td6kSHFhcfpWzBirz4VaFzyucCez2m9OlL/QQpdWVXk25dXi9QQQtNnLqtdk7u9KdwduhBB74kKFQQEr7tW2wIAV5mfk4Rqyqg=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
I seem to be seeing some weird behavior from the _match completer.
So, on zsh 4.3.4, after running zsh -f:
mastermind% autoload -U compinit; compinit
mastermind% zstyle ':completion:*' completer _match
mastermind% touch ' test ' '[test]' atesta btestb
mastermind% ls ?test<TAB>
# shows only atesta and btestb in menu completion
mastermind% ls ?test*
# lists all 4 files
mastermind% ls *test<TAB>
# shows all 4 files in menu completion
mastermind% ls *test*
# lists all 4 files
Why aren't all 4 of those files matched by "?test<TAB>"? It seems as
though the match completer is deciding that '\ ' and '\[' are each two
characters rather than one and failing to match properly as a result.
Any thoughts? Seems like a buglet to me, but it might be some
expected behavior that I missed in the man page.
~Matt Wozniski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author