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

PATCH: Re: completion at beginning of line



> Z(2):akr@flux% Src/zsh -f  
> flux% bindkey -e; autoload -U compinit; compinit -D
> flux% <TAB>
> _main_complete:52: command not found: no
> zsh: do you wish to see all 2100 possibilities (525 lines)? 
> 
> Hm.  Why?

This seems to clear up that error and do what was intended.
There looks to be a similar potential problem on line 44.

Index: Completion/Core/_main_complete
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_main_complete,v
retrieving revision 1.28
diff -u -r1.28 _main_complete
--- Completion/Core/_main_complete	2000/06/13 11:45:26	1.28
+++ Completion/Core/_main_complete	2000/06/18 14:10:42
@@ -49,7 +49,7 @@
 fi
 
 if [[ "$compstate[insert]" = tab* ]]; then
-  { "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) &&
+  { [[ "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) ]] &&
     { [[ "$curcontext" != :* || -z "$compstate[vared]" ]] ||
         zstyle -t ":completion:vared${curcontext}:" insert-tab } } && return 0
 



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