From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27751 invoked by alias); 27 Apr 2011 08:26:34 -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: 29080 Received: (qmail 6130 invoked from network); 27 Apr 2011 08:26:22 -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, T_TO_NO_BRKTS_FREEMAIL 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:date:message-id:subject:from:to :content-type; bh=TKXh5FCwEBbE63O2MKrTRPR5h3IBCz4Se4+OTvIKCd0=; b=NdjIs0pjn587QLq6mdNqUtsXxg++8C59oBXGYgWGq/yVHGef6rnZ9Sm/kheXXVMNEx TbiBayFOD58+HAPOpQECMIuSdeX0uQO5CUqB6lWufRoz9+W4ofAn1iLDYxgLoBnVQa94 10tlrebY0K+jQzT9mtJznld1ZVCrQAje+ZNLM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Yl2eec87akRDgIln1nrnpIIgrLbAr04A0A47h8UjX/D9AXz91nwl8738NljvUA7bVu 7vMwJ0mnLKNqxyKiIs7Z7BIxgB7S4wVkMxFkoyM2Smqam24CEvmsdPTC1IngecxwssWU Ij6fdbjFvQ1a28sFTnaNwngqg2dw5B7TMMEEk= MIME-Version: 1.0 Date: Wed, 27 Apr 2011 11:26:14 +0300 Message-ID: Subject: zle messes up 'words' variable? From: Felipe Contreras To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Hi, I'm trying the following: --- set_vars () { cur="foo" words="foo" cwords="foo" } _foo () { local cur words cwords set_vars echo "cur=${cur} words=${words} cwords=${cwords}" >> /tmp/comp_test.txt } compdef _foo foo --- Which results in: cur=foo words= cwords=foo Strangely enough, if I use the #compdef tag, the code works fine (words="foo"). Any ideas? -- Felipe Contreras