Sven-Göran Bergh wrote:
Anyway, I do no think it is consistent:$ f1() { for z in $(seq 1 3); do : y=$z; done } $ echo "y=$y, z=$z" y=, z= $ f1 $ echo "y=$y, z=$z" y=, z=3
It works the same in bash and busybox ash.
The problem is that you expect the text after the colon to do something.
Try this instead:
f1() { for z in $(seq 1 3); do y=$z; done }
Ralf Friedl
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox
