From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19535 invoked from network); 18 Aug 2007 10:04:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Aug 2007 10:04:28 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 64504 invoked from network); 18 Aug 2007 10:04:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Aug 2007 10:04:21 -0000 Received: (qmail 15020 invoked by alias); 18 Aug 2007 10:04:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23778 Received: (qmail 15010 invoked from network); 18 Aug 2007 10:04:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Aug 2007 10:04:17 -0000 Received: (qmail 64304 invoked from network); 18 Aug 2007 10:04:17 -0000 Received: from mtaout03-winn.ispmail.ntl.com (81.103.221.49) by a.mx.sunsite.dk with SMTP; 18 Aug 2007 10:04:14 -0000 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20070818100413.IHIG13.mtaout03-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Sat, 18 Aug 2007 11:04:13 +0100 Received: from pws-pc.ntlworld.com ([81.107.45.67]) by aamtaout01-winn.ispmail.ntl.com with SMTP id <20070818100413.IAGC219.aamtaout01-winn.ispmail.ntl.com@pws-pc.ntlworld.com> for ; Sat, 18 Aug 2007 11:04:13 +0100 Date: Sat, 18 Aug 2007 11:03:59 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: inconsistent behavior observed with export VAR=VAL versus VAR=VAL zsh 4.2.6 Message-Id: <20070818110359.b4c94f95.p.w.stephenson@ntlworld.com> In-Reply-To: <200708172215.l7HMFalO004036@pws-pc.ntlworld.com> References: <432520.66027.qm@web50101.mail.re2.yahoo.com> <200708172215.l7HMFalO004036@pws-pc.ntlworld.com> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.14; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit This makes the documentation for typeset clearer. Index: Doc/Zsh/builtins.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Doc/Zsh/builtins.yo,v retrieving revision 1.97 diff -u -r1.97 builtins.yo --- Doc/Zsh/builtins.yo 6 Jul 2007 21:52:39 -0000 1.97 +++ Doc/Zsh/builtins.yo 18 Aug 2007 10:03:38 -0000 @@ -1331,7 +1331,14 @@ For each var(name)tt(=)var(value) assignment, the parameter var(name) is set to var(value). Note that arrays currently cannot be -assigned in tt(typeset) expressions, only scalars and integers. +assigned in tt(typeset) expressions, only scalars and integers. Unless +the option tt(KSH_TYPESET) is set, normal expansion rules apply to +assignment arguments, so var(value) may be split into separate words; if +the option is set, assignments which can be recognised when expansion is +performed are treated as single words. For example the command +tt(typeset vbl=$(echo one two)) is treated as having one argument if +tt(KSH_TYPESET) is set, but otherwise is treated as having the two arguments +tt(vbl=one) and tt(two). If the shell option tt(TYPESET_SILENT) is not set, for each remaining var(name) that refers to a parameter that is set, the name and value of the -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/