From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1887 invoked by alias); 12 May 2011 19:41:41 -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: 29253 Received: (qmail 21526 invoked from network); 12 May 2011 19:41:40 -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.212.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:content-type:content-transfer-encoding; bh=rRAAcB6BrWYEEbmiLGU2KcMIE/6siT8ei5Ra9g0eVNI=; b=JjrG2xvUWdX/WwWqKZpUSeiaW1CWX5es2+Caxq9ktIVVyuiCKBO8c2LCP2EHxZK60c Pmd3OQ1N81/jwRnPZ79JhIqTyKkJiqUK9NV126/MC6d+SPo70qkquhVPRbId1FMUYRw3 yb4Ny+jeipzqt6joxeRkS08Rw8VBVY3pq0r1A= 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 :content-type:content-transfer-encoding; b=rQWDahM4bmNwDHHPaETmyFXEhiZiMA5hCUqczpyI2S+jmOOjsDFojocoQ/twtRY9gu 9kkAD7xEaXRckEK+y8/OEMwzpGu2vfvJpbMfddhc7KVjHM6fwnUeE3N67IRic3lQyRZi 6SbO05cqRGNqheEx1GqOeXc9fEdTNRcH8F/fg= MIME-Version: 1.0 In-Reply-To: <1305215346-27247-1-git-send-email-mikachu@gmail.com> References: <110512070408.ZM29757@torch.brasslantern.com> <1305215346-27247-1-git-send-email-mikachu@gmail.com> Date: Thu, 12 May 2011 21:41:36 +0200 Message-ID: Subject: Re: PATCH: Add g:: parameter expansion flag From: Mikael Magnusson To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12 May 2011 17:49, Mikael Magnusson wrote: > Okay, how's this? I swapped the order so g happens first, and changed > the docs as discussed. Just as I was thinking about committing it, I found a bug. I have to metafy the result of getkeystring(). % print -Rn ${(g:o:):-'\201\227\343\201\257'}|wc -c zsh: command not found: =E3=81=AF 1 Not exactly the intended result :). So I am pretty sure I want to use META_HREALLOC, is that correct? Ie if (!copied) val =3D dupstring(val), copied =3D 1; val =3D getkeystring(val, &len, getkeys, NULL); val =3D metafy(val, len, META_HREALLOC); (and same for the isarr case) --=20 Mikael Magnusson