Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] Tied parameters not restored correctly after pre-command re-assignment
- X-seq: zsh-workers 42099
- From: dana <dana@xxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: [BUG] Tied parameters not restored correctly after pre-command re-assignment
- Date: Fri, 8 Dec 2017 18:47:54 -0600
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MbT56C+y/vez3hisnr5W2Vk47Q9qljVb41oqy6GHDrc=; b=xbzl3J6igv+pUaZ8dwMO2N1dnO2Bk3lx6YVSkLhAQfZ0KooAxrUTzICn38Q12rODDt AEsW4gEEU2lP2rZ/ojj+3tvci/RXgj64tYpp2xE/PO1URg37YlXiijIcoQM0iMhCsjy/ Ky1j7JBFfA/R12YEw2k7hSP/Rkz3q/Ann5cCMI1IasZHCQJbmD+Kh1I+biPlJU24rT6O 2t7Jr5DkzKoCv6tY7CqGSF6F9K3PWN/WiN4z21WP1RRfYKqFh6dkzgRMYlRijXdnPMud P9u354m5AGkIudzCw3lx6OX+qzacpHh4ltgcmqhO7tVAyQ720eilleEGOp/q55dWBfNF K8Cw==
- In-reply-to: <CAH+w=7a+b8uTROVFOM10pxDCUP0=znT28tkcjqyiaLwzCrRDRw@mail.gmail.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>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <92FCFBAE-158C-4339-B374-275FD6ACDBE6@dana.is> <CAH+w=7a+b8uTROVFOM10pxDCUP0=znT28tkcjqyiaLwzCrRDRw@mail.gmail.com>
On 8 Dec 2017, at 18:23, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Several things: One, there's no implication that assigning to the
> array part of a tied variable will have any effect on the environment
> value of the scalar part unless you've explicitly exported the scalar.
> Two, exporting arrays is unsupported / undefined behavior, so using
> an array assignment as a command prefix is only sensible in contexts
> where all the execution takes place within the current shell (except
> see also item one).
Yeah, i certainly wouldn't expect it to be able to export the array part.
As far as implying an effect on the environment, i don't know, it obviously
doesn't contradict the documentation or anything, but it seems intuitive (and
useful) to me that it would behave that way. But i realise that would be an
enhancement, not a bug.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author