From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19060 invoked by alias); 5 May 2011 15:55:50 -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: 29152 Received: (qmail 25400 invoked from network); 5 May 2011 15:55:48 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8/rERTY6MulgK1Ty8WgizK+QLWGLXymXvmIKc99Vi5s=; b=II0RZf5ELzODAIwTt3lS0Q/P6Tic3hvssVciWCZ/D9CkDqiYk+bXK2K4pUmBawRdCR hel5qQqvnH5AEDjK6nKb8Oy1HVEvFIi/KEfqASnWG089O7v+vA29kjtyRkFr+ihsEQNK j97EzrximWL+mK8oi5Q/YPguZnreldvjw5wsM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BeKmeSb/kTPlC5n7szLM+XvLveF0kywB2jYGq1I3O29ObARqn16yQ3SITDBSp6EdX9 HG9tTHTxGkUz9D/zQxp2q18f+1g/SxFIcZ4LYmbW9cX2Kj1y0wC4lDGD0Mi50kdZL6+e QkpkFx/p9jX+klQBUoSXnHrtd5VJFW7ALAWUM= MIME-Version: 1.0 In-Reply-To: <110505085030.ZM19411@torch.brasslantern.com> References: <110428203139.ZM11856@torch.brasslantern.com> <110502184235.ZM14465@torch.brasslantern.com> <110503073902.ZM15889@torch.brasslantern.com> <110503175654.ZM16647@torch.brasslantern.com> <110505085030.ZM19411@torch.brasslantern.com> Date: Thu, 5 May 2011 18:55:42 +0300 Message-ID: Subject: Re: zle messes up 'words' variable? From: Felipe Contreras To: Bart Schaefer Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, May 5, 2011 at 6:50 PM, Bart Schaefer w= rote: > On May 5, =C2=A05: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. :-) Yes, that's what I meant :) --=20 Felipe Contreras