Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: POSIX_ARGZERO: not POSIX compliant in sourced script?!
- X-seq: zsh-workers 33159
- From: Daniel Hahler <dhahler@xxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Re: POSIX_ARGZERO: not POSIX compliant in sourced script?!
- Date: Sun, 14 Sep 2014 03:03:39 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:message-id:date:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=/X87TD5NwH8KFgojX9RwwyXK2t7O44ECvdJ58zsmj0Y=; b=p4RT8zpLjQy19yz9RdYjUt37N+s47jdFGNk9DNHL4ug0PX5S2IJX+odiI0QOs5xw9l 3/PLjkdn6HUx218dDVsu8E9tb46h8JsJr80FFHs+cvnx3fOMlagrSNttTXVgjYX4XBqd F1VoeMq4ZzioFnmdSvzuyjbOD8h1DWl8RHu3kNXbp41fu/fjNC0g/VDYfh2uPbt6OTbx sIj2REr6zsFTIZZIsFevz+wResJ9tj9iR8562AElkQM0IwqFdCKpyW0VTxXZPzLgwLbU L+0quD3y4HkgCasKd6FKKd5HFlEK7HvtqBaKbHN0KHbOO7EfHVVSID9HX/upDTMbtccw bLKg==
- In-reply-to: <140911205928.ZM21849@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <54120100.7030803@thequod.de> <140911205928.ZM21849@torch.brasslantern.com>
Thanks for fixing this!
(Reference: Git commit 03e53c8)
Regards,
Daniel.
On 12.09.2014 05:59, Bart Schaefer wrote:
> On Sep 11, 10:07pm, Daniel Hahler wrote:
> }
> } The option POSIX_ARGZERO (added in 19f3161 for zsh 5.0.5) does not
> } appear to be fully POSIX compliant when being used in a sourced file.
>
> Hrm. Well, it was implemented the way it was described to us, but it
> seems we need the following instead?
>
>
> diff --git a/Src/init.c b/Src/init.c
> index 5e92f59..d536978 100644
> --- a/Src/init.c
> +++ b/Src/init.c
> @@ -252,8 +252,9 @@ parseargs(char **argv, char **runscript)
> paramlist = znewlinklist();
> if (*argv) {
> if (unset(SHINSTDIN)) {
> + posixzero = *argv;
> if (cmd)
> - argzero = posixzero = *argv;
> + argzero = *argv;
> else
> *runscript = *argv;
> opts[INTERACTIVE] &= 1;
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author