From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id BAA03349 for ; Wed, 25 Sep 1996 01:14:22 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id LAA28405; Tue, 24 Sep 1996 11:04:17 -0400 (EDT) Resent-Date: Tue, 24 Sep 1996 11:04:17 -0400 (EDT) From: Geoff Wing Message-Id: <199609241501.BAA03200@coral.primenet.com.au> Subject: options glob_assign/magic_equal_subst To: zsh-workers@math.gatech.edu Date: Wed, 25 Sep 1996 01:01:21 +1000 (EST) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"xnjN72.0.lx6.lX_Ho"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2163 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Heyla, is option "magic_equal_subst" now obsolete and renamed/replaced by "glob_assign" with a slightly different functionality and implementation? I was checking my old versions 2.5.0/2.5.03 and it didn't seem to work there anyway! Perhaps my understanding of it is insufficient. Anyone care to give an example? Also, % zsh -f % T=* % echo $T * % T=* globs on files. I am very dubious about the correctness of this. The whole section on glob_assign could use some rewriting for clarification. I only know its exact behaviour from reading the articles months ago about it when it was implemented. >>From zshoptions.1: GLOB_ASSIGN If this option is set, filename generation is performed on the right hand side of parameter assignments. If the result has more than one words the parameter will ^^^^^ typo become an array. This was the default behaviour in earlier versions of zsh but it is incompatible with sh and ksh. Also it is not possible to tell in advance wheter the ^^^^^^ typo result will be a scalar or an array. This option is provided for backwards compatibil- ity only. Globbing is always performed on the right hand side of name=( value ) array assignments regardless of this option. MAGIC_EQUAL_SUBST All unquoted arguments of the from identi- ^^^^ typo fier=expression have file expansion per- formed on expression as if it were a parame- ter assignment, although the argument is not otherwise treated specially. -- Geoff Wing [mason@primenet.com.au] PrimeNet - Internet Consultancy Web: http://www.primenet.com.au/ Facsimile: +61-3-9819 3788