Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Possible parsing bug with alternate for-loop syntax
- X-seq: zsh-workers 38661
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>, zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: Possible parsing bug with alternate for-loop syntax
- Date: Sat, 11 Jun 2016 11:31:27 -0700
- 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; bh=M0FgGrfVBW000jGkK/Tx68xqSd3QlhDDgHn+VN2cKeU=; b=cAaVXxZDbXIivPYtIlAAZ8HHiAj+G/ZanYfxpeCjKmPmlMnNUO6cLZG4LGtUL89XjB cSQSbkY5sqnJBKnG8bE3M5V/sSal8sno1enGLazPaxDrica5Y1KxVQG4LsjNA4NV6HPb XC+aIDUVqBYzFperb7PwGvwP4JjZTmO0W8XBYxXx+jLEq61z3vtb3zKktUGDbHgHD4El q8AM3hcQNndy1zKEuRbL47HQx99X1CHiH6ZqV9fD02GBU75NiQIVVEMaeFiLxjLj+dOe /8ZLq9D3HvKCyStvVA/ZS+dwKZCUC4fbpQCFGcUIalcqtEF+/0fswi+YIRDIV3QA0rUF ZV3w==
- In-reply-to: <CAHYJk3QbvQmFLb9SBXg9+swTO7WMyEcd8NjW37Qve8G-G5JAWw@mail.gmail.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: <CAHYJk3QbvQmFLb9SBXg9+swTO7WMyEcd8NjW37Qve8G-G5JAWw@mail.gmail.com>
Doesn't have anything to do with for-loop syntax:
torch% a=hi}; echo $a
hi}
torch% {a=hi}; echo $a
cursh>
It's assignment parsing. The "}" is always considered part of the
value assigned to the variable.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author