Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID
	autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; 
	h=from:to:subject:reply-to:in-reply-to:references:mime-version:content-type; 
	s=smtpapi; bh=OCsAQ4P0l6eDZZFHocw4Cc2FFyo=; b=vVYpdIhjsbK7YMskPO
	e/4UDCKfYAHhIL/Y5a7mkP1eT6EptXn2dmmDrbdwVNl87s0wzT0hqiFTHwlTUDHD
	4qza+RKy1BmfawbkGQmiuYmJfdfRIXOFBF/7QfwfE+LeqF+Wy2Im0sx5wO+P7Oif
	XV2IZYGdJlTtihIf44YIL5y74=
From: Greg Klanderman <gak@klanderman.net>
To: zsh-workers@zsh.org
Subject: Re: ZSH_SCRIPT
Reply-To: Greg Klanderman <gak@klanderman.net>
Date: Wed, 02 Mar 2016 10:48:42 -0500
In-Reply-To: <20160302093034.6e9086a2@pwslap01u.europe.root.pri> (Peter Stephenson's message of "Wed, 02 Mar 2016 09:30:34 +0000")
Message-ID: <87a8mg7ued.fsf@lwm.klanderman.net>
User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux)
References: <22221.59800.803540.618862@lwm.klanderman.net>
	<160224143153.ZM28994@torch.brasslantern.com>
	<20160225093344.0d2499d5@pwslap01u.europe.root.pri>
	<87r3g08ycp.fsf@lwm.klanderman.net>
	<160225150425.ZM14095@torch.brasslantern.com>
	<87lh6384y5.fsf@lwm.klanderman.net>
	<20160301092746.1472ae95@pwslap01u.europe.root.pri>
	<87fuwa8dpk.fsf@lwm.klanderman.net>
	<20160301150707.2ee18f01@pwslap01u.europe.root.pri>
	<874mcq889m.fsf@lwm.klanderman.net>
	<160301103630.ZM8094@torch.brasslantern.com>
	<871t7u7y7a.fsf@lwm.klanderman.net>
	<20160302093034.6e9086a2@pwslap01u.europe.root.pri>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-SG-EID: i+zOheVB0lMUqP0z3X/8PPLe+C1hDfxH7g5ommK/LCosNl54TWGFulJLdUtt6lMhroNSJ9OyJgPxxU
 jZ4UUTOTEqU/XNrjAuA3Nm4JPXCXuTYCUxmtZ0z7bMMNhJl2ZrUQShZbhbPot6RkjEc45F2qXWKv11
 O/TJk5QlKKCypTnwPKk/VsvICEjfRvKhiMSaHB/1ddxTfx33MjDuBJPbPg7ZRS3Zf0D5MKL+uRwTIP
 A=
X-Seq: zsh-workers 38066

>>>>> On March 2, 2016 Peter Stephenson <p.stephenson@samsung.com> wrote:

> No, the new variables come from an argument and these are already
> metafied very early on in zsh_main by

>     for (t = argv; *t; *t = metafy(*t, -1, META_ALLOC), t++);

OK, I will change those two back to ztrdup() sans metify.
Should I add a comment to that effect?

Did you want this ztrdup in or not:

    zsh_script = ztrdup(runscript);

> Look around and you'll see none of the other uses of command line
> arguments don't get further metafied, either (including posixzero
> which is related to the new ones).

> The things that need metafying when turned into variables come from
> the environment (including the working directory).

It looks like ZSH_NAME comes from argv[0] immediately after the early
metification you pointed out above, but is being re-metified here:

    setsparam("ZSH_NAME", ztrdup_metafy(zsh_name));

Greg

