mirror of
https://github.com/zsh-users/zsh
synced 2024-07-08 19:55:44 +00:00
45616: Remove token from count argument to repeat
This commit is contained in:
parent
fc286a7c11
commit
2a9674862e
|
@ -1,3 +1,8 @@
|
|||
2020-03-26 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 45616: Src/loop.c, Test/A01grammar.ztst: Remove tokens
|
||||
from count to repeat keyword.
|
||||
|
||||
2020-03-25 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 45583/0008: Etc/BUGS, Src/utils.c, Test/B13whence.ztst:
|
||||
|
|
|
@ -499,8 +499,10 @@ execrepeat(Estate state, UNUSED(int do_exec))
|
|||
|
||||
lastval = 0;
|
||||
tmp = ecgetstr(state, EC_DUPTOK, &htok);
|
||||
if (htok)
|
||||
if (htok) {
|
||||
singsub(&tmp);
|
||||
untokenize(tmp);
|
||||
}
|
||||
count = mathevali(tmp);
|
||||
if (errflag)
|
||||
return 1;
|
||||
|
|
|
@ -557,6 +557,13 @@
|
|||
>Hip hip hooray
|
||||
>Hip hip hooray
|
||||
|
||||
repeat 2*2 print yeah
|
||||
0:Tokens in repeat argument
|
||||
>yeah
|
||||
>yeah
|
||||
>yeah
|
||||
>yeah
|
||||
|
||||
case bravo {
|
||||
(alpha) print schmalpha
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user