From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18284 invoked from network); 11 Sep 2006 15:23:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Sep 2006 15:23:13 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 14455 invoked from network); 11 Sep 2006 15:23:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Sep 2006 15:23:05 -0000 Received: (qmail 10127 invoked by alias); 11 Sep 2006 15:23:02 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22688 Received: (qmail 10116 invoked from network); 11 Sep 2006 15:23:01 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Sep 2006 15:23:01 -0000 Received: (qmail 14061 invoked from network); 11 Sep 2006 15:23:01 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 11 Sep 2006 15:23:00 -0000 Received: from torch.brasslantern.com ([71.116.118.106]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J5F00KP3PBH0UDC@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 11 Sep 2006 10:21:18 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k8BFLGUf022436 for ; Mon, 11 Sep 2006 08:21:17 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k8BFLFW8022435 for zsh-workers@sunsite.dk; Mon, 11 Sep 2006 08:21:15 -0700 Date: Mon, 11 Sep 2006 08:21:15 -0700 From: Bart Schaefer Subject: Re: typeset -T versus typeset -r, bug or feature? In-reply-to: <20060911144506.57da4d89.pws@csr.com> To: Zsh hackers list Message-id: <060911082115.ZM22434@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <060905202415.ZM11437@torch.brasslantern.com> <20060911144506.57da4d89.pws@csr.com> Comments: In reply to Peter Stephenson "Re: typeset -T versus typeset -r, bug or feature?" (Sep 11, 2:45pm) On Sep 11, 2:45pm, Peter Stephenson wrote: } Subject: Re: typeset -T versus typeset -r, bug or feature? } } Bart Schaefer wrote: } > Do this in an interactive shell so that the third line doesn't cause the } > shell to exit: } > } > typeset -T READ write } > typeset -r READ } > READ=wrong } zsh: read-only variable: READ } > write=right } > print $READ } right } } This is a feature. OK, but note also that write=right did not convert write into a scalar (see parallel thread about math assignment). I'm not really griping about this as it would mean an implicit un-tying, just noting a point of interest.