Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Comment (# char) behavior in the sub-shell
- X-seq: zsh-workers 41664
- From: Stanislav Seletskiy <s.seletskiy@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Comment (# char) behavior in the sub-shell
- Date: Mon, 11 Sep 2017 00:24:44 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=019EafikwjP6D8aJB49CzQbX7XFu8ZGTFPZsZhLtBAk=; b=jf1AYRrkac3N7C420KaYJGjf2zLugs6SrxdVG+ZjGl16fh/zh83CNz2RLBTqchBkO7 gYcYO6biLYT4AK7NHYxOlp1rCyFNAINy9pG0MvJU2hOBPpqdtAVgdxhPC0cYm31rjL4S D2bhzStXFtr7wMeVjZMGKehp0xKUGa8mO/kxyeAYkWzvoUA5aPU41VAAjEvTP7toFEq8 KQYTg86o17QATc6mBNfxhSfLnNVrVPHZs+ggM5haDwVJzpFRtK4aPmgRrSK2MfDX5hDB /FbUTGgiKB/wvtGkMDtbhB4zNPz+nJgqvDVax3kebLf4R0dHnzfux3fC7RS/+8tX8AFz FHvw==
- In-reply-to: <20170910210636.17bc0581@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: <CAAR+aWfD1ifEe2JGxJAkgA5Rmpr6nmV9Ta9Y6yvW23-oe4hkYg@mail.gmail.com> <20170910210636.17bc0581@ntlworld.com>
> I suspect this changed some versions ago now. At some point we changed
> the way we handled $(...) to parse it better. Previously, we just
> blindly treated it as a string when we first enountered it, reading it
> in interactively until we got to a closing parenthesis. That wasn't
> actually the right thing to do, and crucially it failed where there was
> a case statement in the old syntax where a pattern only has a closing
> parenthesis and not an opening parenthesis. So what we do now is parse
> properly until the (right) closing parenthesis, but still store what we
> parsed as a string for reading again when we execute the $(...).
So, shouldn't it be fixed? It's very misleading, since for me as for
user $(...) that I type in the shell is still interactive mode and
should be treated in the same way.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author