Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au
X-Spam-Level: *
X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00,INVALID_DATE,
	TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.0
Date: Sun, Jan 01 2016 00:37:57 +0000
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: Aliasing assignment-ish words (aliases[x=y]=z)
Message-ID: <20160110003757.GA18461@tarsus.local2>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Seq: zsh-workers 37530

    1	$ zsh -f
    2	% aliases[x=y]=z 
    3	% alias -L 
    4	alias run-help=man
    5	alias which-command=whence
    6	alias 'x=y'=z
    7	% which x=y 
    8	x=y: aliased to z
    9	% x=y
   10	% echo $+x
   11	1
   12	% 

Shouldn't line 9 have interpreted the word 'x=y' as an alias?  Or
perhaps line 2 should have signaled an error.

Also, the 'alias -L' output for that alias won't work as the code
producing the output intended.

