zsh-workers
 help / color / mirror / code / Atom feed
From: Patrick Reader <_@pxeger.com>
To: zsh-workers@zsh.org
Subject: `repeat` with special characters - "bad math expression: illegal character"
Date: Sat, 23 Jan 2021 18:11:09 +0000	[thread overview]
Message-ID: <010201773071544b-42b5de91-3fc9-411d-9f9c-ffb0f1a260e8-000000@eu-west-1.amazonses.com> (raw)

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



             reply	other threads:[~2021-01-23 18:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-23 18:11 Patrick Reader [this message]
2021-01-23 19:33 ` Lawrence Velázquez
     [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=010201773071544b-42b5de91-3fc9-411d-9f9c-ffb0f1a260e8-000000@eu-west-1.amazonses.com \
    --to=_@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).