Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

globbing in the repeat-count word gives "illegal character"



[[[
$ 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)
% 
]]]



Messages sorted by: Reverse Date, Date, Thread, Author