From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29446 invoked by alias); 5 May 2011 15:51:13 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29151 Received: (qmail 9865 invoked from network); 5 May 2011 15:51:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110505085030.ZM19411@torch.brasslantern.com> Date: Thu, 05 May 2011 08:50:30 -0700 In-reply-to: Comments: In reply to Felipe Contreras "Re: zle messes up 'words' variable?" (May 5, 5:48pm) References: <110428203139.ZM11856@torch.brasslantern.com> <110502184235.ZM14465@torch.brasslantern.com> <110503073902.ZM15889@torch.brasslantern.com> <110503175654.ZM16647@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Felipe Contreras Subject: Re: zle messes up 'words' variable? Cc: zsh-workers@zsh.org MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On May 5, 5:48pm, Felipe Contreras wrote: } Subject: Re: zle messes up 'words' variable? } } On Wed, May 4, 2011 at 3:56 AM, Bart Schaefer wrote: } > Hence the scope where my patch added typeset -h is only correct place } > outside the the function called as $OPTARG where words can become non- } > special without changing the arguments passed by that function call. } } You are right, however, it does work in git[1]. Just to be sure no one is confused by that "however" ... It works in the referenced git example and in your new example because in those new examples it's _inside_ the function called as $OPTARG. This thread already has enough miscommunication over scoping. :-)