Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in alias expansion
- X-seq: zsh-workers 37123
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug in alias expansion
- Date: Sun, 15 Nov 2015 14:48:05 -0800
- 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==
- In-reply-to: <20151115200356.0f3a80a2@ntlworld.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAFvQaj4AKN36Ntdxt0rNCqPxWFHtjLMt3zPK65y2Xf9G5iUfWA@mail.gmail.com> <20151115200356.0f3a80a2@ntlworld.com>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author