From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14982 invoked by alias); 2 May 2011 18:19:16 -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: 29130 Received: (qmail 6190 invoked from network); 2 May 2011 18:19:12 -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.161.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=+7cY5Bbkl/ehmp26Sb1j+WjRSvhu/u3bYIuo28tFaJM=; b=GKbM/YRcbMIdxBqGwWWd94ewJW1BM6H/F1gd9c1xJZGmVYQc+NGillU7Tl5/4A1obd JKJIDmxQZMpDhXMlY8sLLkeSAZvXizND/tldxZpW4byiL9D3gJK5br3mN29v/n/9lTot 3PWEbQ9TMGN+AU2HvvxaH6TfNavkXl/MkEnzY= 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=J3WAD8DOy02wTyWVPgShIZWwimfZIMOEDDL3UPgI2u6N9Ngdyx5Ma0L6gcWfzDirwR A4K3h9Mz/mNxAIkCmFsDV1uaK36QlPaX2d9EZ//CzMkRUFXbl7n1IIMwgFv+vA6m6jjX Vk/Y5fpB5xB1f+W314arKO2CO9bLfiQlGlCG0= MIME-Version: 1.0 In-Reply-To: <110428203139.ZM11856@torch.brasslantern.com> References: <110428203139.ZM11856@torch.brasslantern.com> Date: Mon, 2 May 2011 21:11:19 +0300 Message-ID: Subject: Re: zle messes up 'words' variable? From: Felipe Contreras To: Bart Schaefer Cc: zsh-workers@zsh.org, felipe.contreras@gmail.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Apr 29, 2011 at 6:31 AM, Bart Schaefer wrote: > On Apr 28, 11:19pm, Felipe Contreras wrote: > } > } I saw the following reply online but I wasn't CC'ed: > > I typically don't Cc on mail to the list unless the sender specifically > asks for that. =C2=A0If you asked and I missed it, I apologize. Oh, I'm typically on mailing lists where Reply-To isn't munged so it's not necessary to ask for that. But I'll do that. > } > What may be happening is that "sticky emulation" is in effect, so > } > that when the function is autoloaded in bash compatibility mode, > } > "words" becomes non-special. If so, I'm not familiar enough with > } > bashcompinit to say whether that's intentional or an accidental > } > side-effect. > } > } This has nothing to do with bashcompinit, the issue is with plain > } compinit. > > Your example in workers/29086 explicitly loads and runs bashcompinit. > What am I missing? What is 'workers/29086'? This thread is titled "zle messes up 'words' variable?", and the test has nothing to do with bashcompinit: http://article.gmane.org/gmane.comp.shells.zsh.devel/22479 > } BTW. This messes up with a very important function in bash completion: > } _get_comp_words_by_ref() > > I'm now entirely confused. > > I no longer believe that I know what you mean by "in bash completion." By bash completion I mean: http://bash-completion.alioth.debian.org/ > There's no shell function _get_comp_words_by_ref anywhere in the zsh > sources. =C2=A0Where is that coming from? >>From here: http://git.debian.org/?p=3Dbash-completion/bash-completion.git;a=3Dblob;f= =3Dbash_completion;h=3D253d1fb99bcd253535b78c4cbf94e9322e60098c;hb=3Da43a68= f2c60c9f29ab81986382b4063a3aa7bbbb#l422 But it seems it has changed. > If what you're doing is loading functions into zsh that were written to > be used with bash's compgen, then I don't follow how you can NOT be > using bashcompinit. I am using bashcompinit, but the issue appears without it. --=20 Felipe Contreras