From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1339 invoked by alias); 17 Apr 2015 04:39:34 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34904 Received: (qmail 13591 invoked from network); 17 Apr 2015 04:39:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=qYa4i1rtJWPR/oyZUx5vXlgApFdTA9YxY+sCfkKQKEQ=; b=vJF67Ke5U7JO+pDxSbFrjjn2E6SwWzwk1qeiKQRCi5/5ZqukreWjRtghbbFDvs9bLh NleyokDm0AmKk7NYJmfaMvTFZbrfaZecl2dmNiR/hC50X7CHGJvOuVWMR754hUM3heEZ W65d1TVWLZ8qWLs+uNwYzm07DDVCHHRtgiACk21v6Ndeb5ylFoElmfDeW1geiruJfnEh co2yZQiV+U1UE4wHXH3VsC4mTb/gKLoh38KJ25m1mLcw2SFWjPbwTwRl1kfTA2sRY4LC /ZFEFFDB+/K/88tms/J3unDR8MTYU9CcBTSvJoqD1FJrVtDwxNy8Gji3ERzq0Zr0FiUY RTlw== MIME-Version: 1.0 X-Received: by 10.51.17.7 with SMTP id ga7mr565819igd.42.1429245569661; Thu, 16 Apr 2015 21:39:29 -0700 (PDT) Date: Fri, 17 Apr 2015 06:39:29 +0200 Message-ID: Subject: Re: broken parsing with $((`:`)) From: Mikael Magnusson To: Peter Stephenson Cc: zsh workers Content-Type: text/plain; charset=UTF-8 On Wed, Apr 15, 2015 at 11:03 AM, Peter Stephenson wrote: > On Tue, 14 Apr 2015 23:05:31 -0400 > Mike Frysinger wrote: >> looks like zsh doesn't correctly parse this: >> $ zsh -c 'echo $((`:`))' >> zsh:1: bad math expression: illegal character: \M-] >> >> looks like it's related to the subshell not outputting anything. > > Yes, indeed --- there's a funny internal special case for empty strings > that I never quite get my head around. > > (Please, God, make the problems with command and math substitution > parsing stop now.) % $( cmdsubst> [press ctrl-c here] zsh: parse error near `$(' I would expect to not get an error message about syntax after pressing ctrl-c. It doesn't happen with $((, { or any other unbalanced thingers I tried. -- Mikael Magnusson