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

PATCH: _read_comp widget broken by 'setopt nounset'



[~] phl| zsh -f
phl% 
phl% autoload compinit
phl% compinit
phl% setopt nounset
phl% <C-x C-r>
_read_comp:29: _read_comp: parameter not set
phl% 


Index: Completion/Base/Widget/_read_comp
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/Widget/_read_comp,v
retrieving revision 1.1
diff -u -r1.1 _read_comp
--- Completion/Base/Widget/_read_comp	2 Apr 2001 11:17:07 -0000	1.1
+++ Completion/Base/Widget/_read_comp	9 Feb 2009 06:12:22 -0000
@@ -23,7 +23,7 @@
 #  _read_comp         Last completion string read from user
 
 # emulate -L zsh
-setopt localoptions extendedglob nobadpattern # xtrace promptsubst
+setopt localoptions extendedglob nobadpattern unset # xtrace promptsubst
 # local PS4='%N:%i:$((#key))> '
 
 if [[ ${+NUMERIC} = 0 && -n $_read_comp ]]; then



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