zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _read_comp widget broken by 'setopt nounset'
@ 2009-02-09  6:15 Greg Klanderman
  2009-04-21 15:49 ` Greg Klanderman
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Klanderman @ 2009-02-09  6:15 UTC (permalink / raw)
  To: Zsh list


[~] 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: _read_comp widget broken by 'setopt nounset'
  2009-02-09  6:15 PATCH: _read_comp widget broken by 'setopt nounset' Greg Klanderman
@ 2009-04-21 15:49 ` Greg Klanderman
  2009-04-21 16:01   ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Klanderman @ 2009-04-21 15:49 UTC (permalink / raw)
  To: zsh-workers


Hi, I submitted this back in February, but it has not been applied or
commented on.  Could someone take a look please?

thanks,
greg


>>>>> Greg Klanderman <gak@klanderman.net> writes:

> [~] 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: _read_comp widget broken by 'setopt nounset'
  2009-04-21 15:49 ` Greg Klanderman
@ 2009-04-21 16:01   ` Peter Stephenson
  2009-04-21 16:25     ` Greg Klanderman
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2009-04-21 16:01 UTC (permalink / raw)
  To: gak; +Cc: zsh-workers

Greg Klanderman wrote:
> 
> Hi, I submitted this back in February, but it has not been applied or
> commented on.  Could someone take a look please?

It's certainly harmless; we should also get around warncreateglobal
warnings, too.

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	21 Apr 2009 16:00:44 -0000
@@ -23,9 +23,10 @@
 #  _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))> '
 
+typeset -g _read_comp
 if [[ ${+NUMERIC} = 0 && -n $_read_comp ]]; then
   if [[ $_read_comp = _* ]]; then
     eval $_read_comp


-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: _read_comp widget broken by 'setopt nounset'
  2009-04-21 16:01   ` Peter Stephenson
@ 2009-04-21 16:25     ` Greg Klanderman
  0 siblings, 0 replies; 4+ messages in thread
From: Greg Klanderman @ 2009-04-21 16:25 UTC (permalink / raw)
  To: zsh-workers


thanks Peter!


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-21 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-09  6:15 PATCH: _read_comp widget broken by 'setopt nounset' Greg Klanderman
2009-04-21 15:49 ` Greg Klanderman
2009-04-21 16:01   ` Peter Stephenson
2009-04-21 16:25     ` Greg Klanderman

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).