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.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FORGED_MUA_MOZILLA,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31730 invoked from network); 23 Jan 2021 18:11:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Jan 2021 18:11:34 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1611425494; b=hFqxRIkk6KHySC397AHY1YFqG+NMd+fJStONR5czH0Ovk0IMctxlbcp7+/QdxLLC7n51wXeNp3 7Yxho3Q9brwM5rjz5UUUfegUyw8pNMk+IcLWB5pgrptoxnHfuzoJI0TX5GiHqbbHSHT0t8P0Ue bdgxVO6xjyUqJmLb2V6tiEYAYSlLnY8CtIbnzz+JLx6CkOboQtcpsvYdXz+kEz851V5RRLeiwt 9iIVElRG54zBXtvPU7Umn4iwRXOOS7U0d1TTp0/+7u9jTD5TIRC3CawF2IYXJAS1PZODpk/jOP motA2r9DfnIQ6z51ufLFZoe4NTVDj7miVi5CIY76fD9Rxg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (a7-12.smtp-out.eu-west-1.amazonses.com) smtp.remote-ip=54.240.7.12; dkim=pass header.d=pxeger.com header.s=tqv4uysrlnm4medenf5ivv2dv3fy2re7 header.a=rsa-sha256; dkim=pass header.d=amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.a=rsa-sha256; dmarc=none header.from=pxeger.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1611425494; bh=ElRzPi/emE9cTTnsy6dNesgm9nByYLj98rpG0Wnw8Vg=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Subject:From:To:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=0m1lP18XwY4KavTQE+4NghiFNvFyQylptT/xVhnP0B3E5mv6RvImmun/tYtxsTYz7N9Bu8wbEY Nxns317M1EVGSgCF0I1em2LbiRMEitoVAyIv86sG/lrBqr/Kr28rlucaaGAMsGgPR75Qw5cQKL yfC5mqQpJj2djaldYg8vd1Gyrltd8p7FcK6AZP1Jey5ZBJ7bea5gDm94/204dsQWfqXt9jF7Rs gCo7R3+HTrYLn2w4gZImD+xNQctHgIuF2sKsZbsRZsq2HVV294aTb1W9qmAVj2z59bTHEKrUrH CsxWPEbJP2oLs0X5sGzzdXB4BZ5hvIHRFxnEblKdoAKUkQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:To:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=SmfxMzS23ISec0yhuXtwbXpoJcD6ZRI9HGITmoOp81Y=; b=QXHq2UpKjJFYWLaSvntcWf7X+F cvo5WBQZSx2yh3YuTOT8mqKnaCPNxBcr01KetHTPLwhJukY9gPpJ+V1tXwIHw4LhMgrPmuVIhAF5s KAsSmXzFZ7cQ4X7uc/qx2IXm3Z929nNW2/7rOJhrg5SCKpS1+W1jEjhQsnQdlSmMvbp4844v3fcQM M1fa84sK7ZmWr2RL1yU/K9hhmgrVyzqWBWFc3xjCCuS1euZtoJPJlN2hcBrKjxpro/27BNg9LG0us oz7n3SAESl28ppo9N19egZETLQOu5Ip9yOyVf+Vxh0n/ssvTNxXNyQ69UyWQGCYRX5/z1lnyLtP4k OuyfwBnw==; Received: from authenticated user by zero.zsh.org with local id 1l3NNi-000OXK-LR; Sat, 23 Jan 2021 18:11:30 +0000 Authentication-Results: zsh.org; iprev=pass (a7-12.smtp-out.eu-west-1.amazonses.com) smtp.remote-ip=54.240.7.12; dkim=pass header.d=pxeger.com header.s=tqv4uysrlnm4medenf5ivv2dv3fy2re7 header.a=rsa-sha256; dkim=pass header.d=amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.a=rsa-sha256; dmarc=none header.from=pxeger.com; arc=none Received: from a7-12.smtp-out.eu-west-1.amazonses.com ([54.240.7.12]:50065) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-SHA256:128) id 1l3NNO-000OO9-NX; Sat, 23 Jan 2021 18:11:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=tqv4uysrlnm4medenf5ivv2dv3fy2re7; d=pxeger.com; t=1611425469; h=To:From:Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=ElRzPi/emE9cTTnsy6dNesgm9nByYLj98rpG0Wnw8Vg=; b=BjtNZ/aH1B0ToaAGFDKmGT9E0hGuoyCbM2G+3u8MQ3dfnXyBbtcJZNjHe9nFl5PI 1SSt/Q+blGPeNopWJpZRxCthxfe3yopcApv8xTP8GDqQurKGq0q99NSF2F5veEC6r4z tueqH9kIIWLcvkjzJfwyEfTVComFB/a9qsuLDxfQ= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=shh3fegwg5fppqsuzphvschd53n6ihuv; d=amazonses.com; t=1611425469; h=To:From:Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=ElRzPi/emE9cTTnsy6dNesgm9nByYLj98rpG0Wnw8Vg=; b=lKWLhBISLvkCwnyuavXoTtxi9hH5zFo23LvuPcxs8+PXzYlCMqMByvL7DGouJo9x gghyRQf6S+x56f2FH6oIZVHWJZo1NDm/AlgOvUCcl0uHrZFP+BEQa50qY2b3dSony1N BS/Lu0MZMux3hXrfi7HbgJYluNIPWqsCMj6JSGKE= To: zsh-workers@zsh.org From: Patrick Reader <_@pxeger.com> Subject: `repeat` with special characters - "bad math expression: illegal character" Message-ID: <010201773071544b-42b5de91-3fc9-411d-9f9c-ffb0f1a260e8-000000@eu-west-1.amazonses.com> Date: Sat, 23 Jan 2021 18:11:09 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-SES-Outgoing: 2021.01.23-54.240.7.12 Feedback-ID: 1.eu-west-1.O8fLL1RnZ8YOldtp6Bf8+xGGBJTnUb+xpx8eQnH6GAs=:AmazonSES X-Seq: 47861 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Hi, When I use the `repeat` complex command with an arithmetic expression containing one of the following special characters: * = ^ ? I get an error message in the form "zsh: bad math expression: illegal character: \M-X". The "X" is replaced by one of G M F W (corresponding to the symbols above). This doesn't happen if I wrap the character in single or double quotes, or escape it with a backslash. It still happens with even the options `noglob`, `noequals`, `nomagicequalsubst` which I thought might be causing them to be misinterpreted. Why does this happen? Patrick