From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13729 invoked by alias); 9 Dec 2017 00:48:07 -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: List-Unsubscribe: X-Seq: 42099 Received: (qmail 3872 invoked by uid 1010); 9 Dec 2017 00:48:07 -0000 X-Qmail-Scanner-Diagnostics: from mail-it0-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.214.54):SA:0(-2.6/5.0):. Processed in 9.329721 secs); 09 Dec 2017 00:48:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=MbT56C+y/vez3hisnr5W2Vk47Q9qljVb41oqy6GHDrc=; b=l3oudlZCmnB8q4h3TA4wQtuGojnI3PYlT01g83u4vzsrxvfDeSG8PHChODMDCOMOwM x0GZfOb5/HrvYlo2PS0yL8OS89gqhz+baLJLomobnCivYjnFhx4KEg68m9s0NNUsg5HU NskxH2MMv0N0tar0icY/PZCYJQUadfUuDP5IAR+sTXo4KitFTE4k3HFYa2JaC0QGBu7C r6Gq9kUv2zusYmwG/5VF5cazm/bsXYdqt2Mkx1T30/hU1jXrpnp5pBF1KhLeu7Jurs4N j/sSVMmQWbvFvkyfunNO+/smEc5nS14qfv8uwnSnk23jJMW/Jdg6SZo8636OjcNtvJKO MyWw== X-Gm-Message-State: AKGB3mJbYIm7zR7JVuvHpr9W2QOcqudc7PYWmlvSmA6mtxV7XKX0gX55 ASoLfp9y97YgweKTY3/7arKNzkl552E= X-Google-Smtp-Source: AGs4zMb10qYhAq52pcredOunNd7QTytabQcLVYXd0Gn3UGn+qpwHxfKN32PZ3f8lQdxXAZ4pEL2K2w== X-Received: by 10.36.103.199 with SMTP id u190mr7567318itc.56.1512780475542; Fri, 08 Dec 2017 16:47:55 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [BUG] Tied parameters not restored correctly after pre-command re-assignment From: dana In-Reply-To: Date: Fri, 8 Dec 2017 18:47:54 -0600 Cc: zsh-workers@zsh.org Content-Transfer-Encoding: 7bit Message-Id: <766AB717-4F48-48F0-8480-DB5E13DBD32F@dana.is> References: <92FCFBAE-158C-4339-B374-275FD6ACDBE6@dana.is> To: Bart Schaefer X-Mailer: Apple Mail (2.3273) On 8 Dec 2017, at 18:23, Bart Schaefer 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.