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

compset -q oddities



I managed to break a few things while composing a reply to 39265:

1.
% _f() { compset -q ; compadd "~~~" } 
% compdef _f f
% f <TAB><TAB>
<becomes>
% f \\\~\\\~\\\~\\\~\\\~\\\~

2. 
% _g() { compset -q } 
% compdef _g g
% g $'\'<TAB>
compcore.c:1657: expecting 'x' at offset 2 of "'x"

3. 
% _h() { repeat 2 compset -q; compadd foo }
% compdef _h h
% h "\$'<TAB>
<becomes>
% h "$'foo<TAB>
utils.c:6826: BUG: unterminated $' substitution




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