From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21286 invoked by alias); 15 Nov 2015 22:48:10 -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: 37123 Received: (qmail 19524 invoked from network); 15 Nov 2015 22:48:09 -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.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern_com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=/amz17YO7HpZZcFvFkxjHwoPLvJvtUfDeLtC5ndZxQ0=; b=b/ZHOiSiVlbQiJwJ+VCKKlK04eCoVXozUpmMOc6+yEEg8b3omlbB6CN4sBkXyT7fxD NFYVffSrGPrfDOufxRjZhlUlGW2e3MorPm6QyCXb7LCzOmDgxxxpnGYImxzGRN9HJn3B T+qPzKgUOAxINsTwnCZ0un1r9ze1oyH5BsKHWUQyBzyDDYS3ok86m1/yhdral8B0I89z No2LI3gb2RYcxgcUJkS8DYTnivM65Ntr/ewX2oano0MDKW1xv7sAJghBF9TDpLz85Uhb v35rvsoVq8SXp68w/jXG0w2+otR6c+7zKuQ2Pnid0XxhenURZ4KE1blqD66OAYI2Bza1 czxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=/amz17YO7HpZZcFvFkxjHwoPLvJvtUfDeLtC5ndZxQ0=; b=hy0nElTEGC55hJhZYjcuRUGFBxy5IidHNmiPI/CoMUjuUQRLXViajk2fPz32D23HN/ bkvErsKZUYU3IYLEuxCVse6wvFAShgG+T6N42Tfgus8F5m0SIn54c7Ad/8Zfn15n+9IU 7hhVycjy7srtHz+u3lkq5eDpnaVWexHpdKVvx6C3lE+DytV5Gjt5VgSyxbCX1TvjdKKz 3eno+LyNsybgLjMQAAG+FvCbEkPX5JbeZ/L6qRHqOCZ2el+71Pl9gRRr6qbM3rmVsyfu /UnLHg8VFPJv931mXNr4ssZAGXxVuOMUTecS3IEpAu3rq+maGEsf3ohTmXOH95Fjf0PE iO5g== X-Gm-Message-State: ALoCoQnTX7H1Jc2u3hJPl9N4CcCg2i7sSHWigYGtGa3an1cpx549mZiq+J0Apf4Ep4neyTKAcGqC X-Received: by 10.202.198.151 with SMTP id w145mr2023349oif.25.1447627687803; Sun, 15 Nov 2015 14:48:07 -0800 (PST) From: Bart Schaefer Message-Id: <151115144805.ZM20614@torch.brasslantern.com> Date: Sun, 15 Nov 2015 14:48:05 -0800 In-Reply-To: <20151115200356.0f3a80a2@ntlworld.com> Comments: In reply to Peter Stephenson "Re: Bug in alias expansion" (Nov 15, 8:03pm) References: <20151115200356.0f3a80a2@ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Bug in alias expansion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 15, 8:03pm, Peter Stephenson wrote: } } I don't know why this works in other contexts. Addendum: To some extent it does not. torch% alias foo='echo x)$(:' torch% print $(foo) zsh: command not found: fooecho This should of course expand to print $( echo x)$(: ) which is perfectly valid and definitely should not produce "fooecho", so the backtracking is still messed up somewhere and parse_subscript() is potentially a red herring. In older versions of zsh it gagged in a different way: % alias -g foo='echo x)$(:' % print $(foo) zsh: parse error near `)' zsh: parse error in command substitution