Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion/matcher error with file names that contain
- X-seq: zsh-users 23634
- From: David Woodfall <dave@xxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Completion/matcher error with file names that contain
- Date: Sun, 16 Sep 2018 09:47:10 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
unicode glyphs
zsh 5.6.2 in a plain linux console (which is set up for unicode.)
I get this error when I try to complete a non-existent file with 'ls'
and other commands when a file in pwd contains a unicode glyph in the
namw. e.g. 'PAБOTA'
516: utils.c:5456: BUG: unexpected end of string in mb_metacharlen()
After a little commenting out some of the completion lines in my
config I found that it comes down to the last line in my
matcher-list:
zstyle ':completion:*' matcher-list \
'm:{a-zA-Z\-}={A-Za-z\_}' \
'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-zA-Z\-}={A-Za-z\_}' \
'r:|?=** m:{a-zA-Z\-}={A-Za-z\_}'
I'll admit right here that I found the last two lines in that
matcher-list on the net and don't have much clue on what the ones
that use =* do. I was looking for partial in-word completion so that
e.g. doing:
cd air<tab>
would complete to
cd vim-airline
Thoughts?
--
Note that if I can get you to "su and say" something just by asking,
you have a very serious security problem on your system and you should
look into it.
-- Paul Vixie, vixie-cron 3.0.1 installation notes
.--. oo
(____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author