From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4974 invoked from network); 7 Feb 2006 19:54:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Feb 2006 19:54:13 -0000 Received: (qmail 5161 invoked from network); 7 Feb 2006 19:54:07 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Feb 2006 19:54:07 -0000 Received: (qmail 20157 invoked by alias); 7 Feb 2006 19:54:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22201 Received: (qmail 20147 invoked from network); 7 Feb 2006 19:54:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Feb 2006 19:54:03 -0000 Received: (qmail 4844 invoked from network); 7 Feb 2006 19:54:03 -0000 Received: from smtpout0149.sc1.cp.net (HELO n068.sc1.cp.net) (64.97.136.149) by a.mx.sunsite.dk with SMTP; 7 Feb 2006 19:54:02 -0000 Received: from sc (82.26.171.243) by n068.sc1.cp.net (7.2.069.1) id 43E3F78000064BA4 for zsh-workers@sunsite.dk; Tue, 7 Feb 2006 19:54:00 +0000 Received: from chazelas by sc with local (Exim 3.36 #1 (Debian)) id 1F6YuV-0001Pd-00 for ; Tue, 07 Feb 2006 19:53:59 +0000 Date: Tue, 7 Feb 2006 19:53:59 +0000 From: Stephane Chazelas To: Zsh hackers list Subject: parenthesis inside $(...) Message-ID: <20060207195359.GB5015@sc> Mail-Followup-To: Zsh hackers list Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.6i Sender: Stephane Chazelas Hi, Would that: http://groups.google.com/group/comp.unix.shell/msg/18e47b386da472bd be an already known issue. Essentially: $ zsh << \E heredoc> echo $( heredoc> case x in x) echo x;; esac heredoc> ) heredoc> heredoc> echo $( heredoc> echo comment # with ) heredoc> ) heredoc> heredoc> echo $( heredoc> cat <<\eof heredoc> here-doc with ) heredoc> eof heredoc> ) heredoc> heredoc> echo $( heredoc> cat <<\eof heredoc> ' # or a single back- or doublequote heredoc> eof heredoc> ) heredoc> E zsh: parse error near `;;' zsh: parse error near `)' comment zsh: parse error near `)' here-doc with zsh: command not found: eof zsh: parse error near `)' zsh: parse error near `$(' Best regards, Stéphane