1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

35953: fix handling of command substitution in math context

This commit is contained in:
Barton E. Schaefer 2015-07-29 22:36:45 -07:00
parent 6fd8872d58
commit c0a80171ee
3 changed files with 16 additions and 1 deletions

View file

@ -182,6 +182,12 @@
>1
>2
for (( $(true); ; )); do break; done
for (( ; $(true); )); do break; done
for (( ; ; $(true) )); do break; done
for (( ; $((1)); )); do break; done
0:regression test, nested cmdsubst in arithmetic `for' loop
for keyvar valvar in key1 val1 key2 val2; do
print key=$keyvar val=$valvar
done