Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] posix_builtins: allow exporting a readonly
- X-seq: zsh-workers 44442
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] posix_builtins: allow exporting a readonly
- Date: Fri, 21 Jun 2019 09:59:04 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190621085907euoutp01b03e37fda7220479ae1007afd5d414db~qKwsi3k0g3271932719euoutp01K
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1561107547; bh=UsaMl7qrwrflbeCP9LzF+mliZzF+aneNM+7llM9g4Ck=; h=Subject:From:To:Date:In-Reply-To:References:From; b=rXb+0zCYNJz2jY5eYdmp+Gc6KW86VrYv00CoWBvbvyHUZMeLa4WVarzvRLMBBl4b8 TVqgBgQsHvhuF+9aOAHLBXBzpQCjY1WKCH4uPnxC2f+MJfqlIK41krDL3kiAGI/ulc /jNSROf1k1G+91kvpK92+KLKdV/wy0XpjaY9zdVE=
- In-reply-to: <af2935f6-32c7-8594-8fed-8744e6f6844a@inlv.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1c9aa8c0-c8ee-564f-d351-461d4183d533@inlv.org> <CGME20190620184820epcas3p43fbea06a7536c056bc4898d4b1ef81ab@epcas3p4.samsung.com> <af2935f6-32c7-8594-8fed-8744e6f6844a@inlv.org>
On Thu, 2019-06-20 at 19:47 +0100, Martijn Dekker wrote:
> Op 18-04-18 om 20:58 schreef Martijn Dekker:
> >
> > POSIX_BUILTINS incorrectly prohibits exporting a readonly variable. All
> > other POSIX shells allow this and there is nothing in the POSIX text[*]
> > that says it's not allowed. The attached patch fixes this.
> This seems to have been forgotten about, so I'm trying again.
>
> To recap:
>
> $ zsh -c 'readonly foo=123; export foo' # OK
> $ zsh --emulate sh -c 'readonly foo=123; export foo' # BUG
> zsh:1: read-only variable: foo
>
> I had another look at it and I think this patch (attached) should be
> even more straightforward.
This sounds fine but I don't think there is an attachment.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author