From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5473 invoked by alias); 23 Mar 2018 17:30:00 -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: List-Unsubscribe: X-Seq: 42513 Received: (qmail 6008 invoked by uid 1010); 23 Mar 2018 17:30:00 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr0-f181.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.128.181):SA:0(-1.9/5.0):. Processed in 1.070755 secs); 23 Mar 2018 17:30:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ulSgDLyQQQKrhQ4TafCJFCAZZesT+Mvw+nARPVfbmKc=; b=cQ4gUksY3gDcJbGia40JKsugUWHbbBT3cZfr4BuHTUbSVqAvuEln3xZxAe8OvObqxX Zo1NirhDd5FcAxgMQW6XTIQ6KEJlSuAHzbVjIP2OLk4o0u5gAPlzMjV9m/XxPQYd36vl 1cAUHr+ZWmzTbgnDs26/1gIBEB4ysQc2cY5AQ6ObUd53dNd1jki4+R7KyIseDaRqKGOQ MlbcIXErgNvcFwlRiD8zv2H/apEvnEta3lztb9S3SQx2DVGATvRUWRqf0UXuNThx8d1d YpWhSGGGaV225/zBwIDSTethCluJDOW2RBe3FPo3ZELB0M6XB7l+C44p4YHUdlmCjU82 Ekdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=ulSgDLyQQQKrhQ4TafCJFCAZZesT+Mvw+nARPVfbmKc=; b=ttiNvQMJm/dPdIhIk52mAnVCQzMmp8/U0zFPseOeq3KGo6gpvoSulNmGGvGfM711in R0WofqJLVO4zlUkqk6L2gZya6cXH//X4GEg4U31/c8bTCOGtYjKA0KNAZkFuNqQQR0c6 L/O32ZFLQ0AyCT02g9E8L+w5xR5oEWLsW7VprVy3fTPozCjld6xQd1UfJoTuUIpmx6Ux 5+UZsaJ3zkYEO4HDjh8kwsiCFv2rmmP0NSxUMwZP1wXfvuKosW9Efoxp1BiesebIdOT9 GQrbDnzj3pFul1K/TRZ9EJnPDRejBGd0tFcbG0SCSIVEXopRY6b0GpRZHj7th3N6/vHM 0qog== X-Gm-Message-State: AElRT7H0ZOeC2rBt4a/NPQ+UdLB4UKTWpampxHzyUHp+7HuWGX/Pn63T UOQITeVZA3KrYpUKMogkUUs= X-Google-Smtp-Source: AG47ELskSjj+79D2rPBggR+E1U9Zq0nzpVwTjN0kFUfX74vu08IoWF63lQ2Nf3yhjGyWFgtHJMCOrg== X-Received: by 10.223.150.175 with SMTP id u44mr22951648wrb.104.1521826194992; Fri, 23 Mar 2018 10:29:54 -0700 (PDT) Date: Fri, 23 Mar 2018 17:29:53 +0000 From: Stephane Chazelas To: Joey Pabalinas Cc: "zsh-workers@zsh.org" Subject: Re: [PATCH] Allow '=' aliases to be used with -L Message-ID: <20180323172953.GA25905@chaz.gmail.com> Mail-Followup-To: Joey Pabalinas , "zsh-workers@zsh.org" References: <20180322011905.45n377wsxp62k57e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180322011905.45n377wsxp62k57e@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) 2018-03-21 15:19:05 -1000, Joey Pabalinas: > Special case '=' aliases so that they can be output correctly > by -L and be used in startup scripts. [...] FWIW, another corner case: $ aliases[(e)]=whatever $ alias -L alias ''=whatever $ eval "$(alias -L)" zsh: whatever not found Actually, I didn't quite expect that error message, I would have thought echo ''=foo would be the same as echo '=foo' That the = operator would not be recognised in that context. I can't say I like that behaviour. It gets worse with expansions: $ echo $0=ls /bin/zsh=ls $ echo $1=ls /bin/ls -- Stephane