zsh-workers
 help / color / mirror / code / Atom feed
From: Geoff Wing <mason@primenet.com.au>
To: zsh-workers@math.gatech.edu
Subject: options glob_assign/magic_equal_subst
Date: Wed, 25 Sep 1996 01:01:21 +1000 (EST)	[thread overview]
Message-ID: <199609241501.BAA03200@coral.primenet.com.au> (raw)

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=*<TAB>
  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


             reply	other threads:[~1996-09-24 15:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-24 15:01 Geoff Wing [this message]
1996-09-24 15:34 ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199609241501.BAA03200@coral.primenet.com.au \
    --to=mason@primenet.com.au \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).