mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
37804 (plus 37816): first word following "repeat" should be evaluated as math
This commit is contained in:
parent
d18476ce5c
commit
0b37b5149d
2 changed files with 6 additions and 1 deletions
|
|
@ -493,7 +493,9 @@ execrepeat(Estate state, UNUSED(int do_exec))
|
|||
tmp = ecgetstr(state, EC_DUPTOK, &htok);
|
||||
if (htok)
|
||||
singsub(&tmp);
|
||||
count = atoi(tmp);
|
||||
count = mathevali(tmp);
|
||||
if (errflag)
|
||||
return 1;
|
||||
pushheap();
|
||||
cmdpush(CS_REPEAT);
|
||||
loops++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue