zsh-workers
 help / color / mirror / code / Atom feed
From: "Lawrence Velázquez" <vq@larryv.me>
To: Patrick Reader <_@pxeger.com>
Cc: zsh-workers@zsh.org
Subject: Re: `repeat` with special characters - "bad math expression: illegal character"
Date: Sat, 23 Jan 2021 14:33:02 -0500	[thread overview]
Message-ID: <D7AB4F13-4405-4368-8B01-465566AFCF5D@larryv.me> (raw)
In-Reply-To: <010201773071544b-42b5de91-3fc9-411d-9f9c-ffb0f1a260e8-000000@eu-west-1.amazonses.com>

> On Jan 23, 2021, at 1:11 PM, Patrick Reader <_@pxeger.com> wrote:
> 
> 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?

Could you provide an example?

vq

  reply	other threads:[~2021-01-23 19:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-23 18:11 Patrick Reader
2021-01-23 19:33 ` Lawrence Velázquez [this message]
     [not found]   ` <0102017730be053e-9eccbdb4-1596-4ae7-8bee-5f2005229b83-000000@eu-west-1.amazonses.com>
2021-01-23 19:41     ` Lawrence Velázquez
2021-01-23 20:47 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D7AB4F13-4405-4368-8B01-465566AFCF5D@larryv.me \
    --to=vq@larryv.me \
    --cc=_@pxeger.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).