From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10837 invoked by alias); 10 Jan 2016 00:44:41 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37530 Received: (qmail 1249 invoked from network); 10 Jan 2016 00:44:40 -0000 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 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) 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.