Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
`repeat` with special characters - "bad math expression: illegal character"
- X-seq: zsh-workers 47861
- From: Patrick Reader <_@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: `repeat` with special characters - "bad math expression: illegal character"
- Date: Sat, 23 Jan 2021 18:11:09 +0000
- Archived-at: <https://zsh.org/workers/47861>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-01/010201773071544b-42b5de91-3fc9-411d-9f9c-ffb0f1a260e8-000000%40eu-west-1.amazonses.com>
- Feedback-id: 1.eu-west-1.O8fLL1RnZ8YOldtp6Bf8+xGGBJTnUb+xpx8eQnH6GAs=:AmazonSES
- List-id: <zsh-workers.zsh.org>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author