zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: $(...) and <<
Date: Thu, 31 Jul 2014 09:20:23 -0700	[thread overview]
Message-ID: <140731092023.ZM16680@torch.brasslantern.com> (raw)
In-Reply-To: <20140731092711.GA28401@chaz.gmail.com>

On Jul 31, 10:27am, Stephane Chazelas wrote:
}
} $ zsh -c 'echo $(cat << EOF
} blah)
} EOF
} ); echo test'
} zsh:4: parse error near `)'

Yeah, to fix that we're going to have a write a whole new chunk of parser
(lexer, really) specifically for $(...).  There's an entry point for it
now, but all it does is try to lexically consume a string ending with ")";
it handles balanced paren pairs but not the situation above.  Same with

% echo $(case $foo in
bar) echo test;;
zsh: parse error near `;;'

} By the way, is there  any plan of having an issue tracker for
} zsh somewhere. That would help to keep track of the known
} issues.

An issue tracker needs to be part of a larger plan -- we tried using the
tracker at SourceForge but it didn't work because no one monitors it, so
it became an issue black hole.  At the moment there isn't anyone to take
that responsibility.


  reply	other threads:[~2014-07-31 16:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-31  9:27 Stephane Chazelas
2014-07-31 16:20 ` Bart Schaefer [this message]
2014-07-31 16:42   ` Peter Stephenson
2014-07-31 17:23     ` Stephane Chazelas
2014-08-01  0:34       ` Issue trackers (Re: $(...) and <<) Bart Schaefer
2014-08-04 18:51     ` $(...) and << Bart Schaefer
2014-08-06 21:25 ` Stephane Chazelas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=140731092023.ZM16680@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).