From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30965 invoked from network); 17 Jun 2020 23:22:47 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 17 Jun 2020 23:22:47 -0000 Received: (qmail 28508 invoked by alias); 17 Jun 2020 23:22:38 -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: List-Unsubscribe: X-Seq: 46065 Received: (qmail 18377 invoked by uid 1010); 17 Jun 2020 23:22:37 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25842. spamassassin: 3.4.4. Clear:RC:0(209.85.210.44):SA:0(-1.9/5.0):. Processed in 1.947781 secs); 17 Jun 2020 23:22:37 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.210.44 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=wFt8LB9HKpkMMvi5gMffvkDMQKEugMCl6ktxENm4T0c=; b=ZrZUZuq7VIfZmyCjrmVUNNpIaUYVh+2iOCqD+LqvP1AvxLDUa9pjsl5sRLfKuX4UAL 60vCP8Uq9QRISMl6sk5KgSufjZURScrEra/4ciwOShQ75cnSuHP7ThMjeuj9WbyPRUP2 wl8aYZgLdl5wibW/zQYjo/lgpMog5Uw0pzdxQc+2PJuPMDavS3fxXWXX/VxE2o7ExqEO dH6zV33Mr+MeilaSXrveaqOp3LrQ/6fULoPTPaDSGW13BWVvO7aeDEnf3TM4fmcsW6dC IZWvw7m67GQHWm1OGUaojf7oFaJiSRAREsbHcalh434x0CWl6MhuLuCF/TMM7gAtOb02 4t2A== X-Gm-Message-State: AOAM5331aNs2tSaaql2iVbeDFqRJg9yVD9zRFc97hXzZw839evh0IbFx JSsXsFeESn1NYnqsLklv+ImZH+OR4ZixhPvejwxlKgtv X-Google-Smtp-Source: ABdhPJyMjzNcUcaxhnRv5r/xRF+VSwAOQyDjeHkb7+KlWBgJ/f3uc/hoF5Nre3tIEbccormmuIf/a2FPbsjRGNiTpMU= X-Received: by 2002:a05:6830:17ce:: with SMTP id p14mr1223714ota.161.1592436121947; Wed, 17 Jun 2020 16:22:01 -0700 (PDT) MIME-Version: 1.0 References: <17B9983F-268E-469C-9506-D5333528A805@larryv.me> In-Reply-To: <17B9983F-268E-469C-9506-D5333528A805@larryv.me> From: Bart Schaefer Date: Wed, 17 Jun 2020 16:21:50 -0700 Message-ID: Subject: Re: bad math expression: illegal character: " To: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jun 5, 2020 at 2:02 PM Lawrence Vel=C3=A1zquez wrote= : > > > On Jun 5, 2020, at 2:18 PM, Artur Renault > > > > while (( "$#" )); do > > > > repro.sh:1: bad math expression: illegal character: " > > For what it's worth, dash also rejects this. I assume that it and > zsh are just more strict about what constitutes a math expression. Does anybody know if this is something we should change for sh emulation, or is it merely another unspecified POSIX corner-case?