Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: broken parsing with $((`:`))
- X-seq: zsh-workers 34904
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: broken parsing with $((`:`))
- Date: Fri, 17 Apr 2015 06:39:29 +0200
- Cc: zsh workers <zsh-workers@xxxxxxx>
- 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==
- 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
On Wed, Apr 15, 2015 at 11:03 AM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Tue, 14 Apr 2015 23:05:31 -0400
> Mike Frysinger <vapier@xxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author