Quoting "Levy, Chen" <[EMAIL PROTECTED]>:


>

> It's output is:

>

> ----------

> init: 5

> 14553 6 : 14553 7 : 14553 8 : 14553 9 : 14553 10 : 14553 11 : 14553 12 :

> 14553

> 13 : 14553 14 : 14553 15 :

> after while: 5

> 14553 6 : 14553 7 : 14553 8 : 14553 9 : 14553 10 : 14553 11 : 14553 12 :

> 14553

> 13 : 14553 14 : 14553 15 :

> after for: 15

> 14553

> ----------

>

> The question is: "Way?"



No way!



(Sorry, couldn't resist)



I think the reason is that the while runs in a sub-process, because it is behind

a pipe. It's strange, however, that it does have an initial value for n, I'd

have thought that n should be exported for that to happen.



Herouth


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to