Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing in the repeat-count word gives "illegal character"
- X-seq: zsh-workers 45574
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: globbing in the repeat-count word gives "illegal character"
- Date: Tue, 17 Mar 2020 19:37:10 +0100
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <20200317032945.696066ab@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20200317032945.696066ab@tarpaulin.shahaf.local2>
On 3/17/20, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> [[[
> $ Src/zsh -f
> % cd "$(mktemp -d)"
> % repeat ? true
> zsh: bad math expression: illegal character: \M-W
> %
> ]]]
>
> [[[
> frame #1: 0x0000000000487eac zsh`matheval(s="\x97") at math.c:1479
> 1476 x = mathevall(s, MPREC_TOP, &junk);
> 1477 mtok = xmtok;
> 1478 if (*junk)
> -> 1479 zerr("bad math expression: illegal character: %c", *junk);
> 1480 return x;
> 1481 }
> 1482
> (lldb) p *junk
> (char) $0 = '\x97'
> ]]]
>
> [[[
> % ag 0x97 | cat
> Src/zsh.h:191:#define Quest ((char) 0x97)
> %
> ]]]
Not limited to globbing characters,
% repeat { false
zsh: bad math expression: illegal character: \M-O
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author