[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: variables in while-pipe-line
From: |
Eduardo Fake-O Name-O |
Subject: |
RE: variables in while-pipe-line |
Date: |
Sun, 1 Sep 2002 23:29:34 -0400 |
snip
------------------------- >8 -------------------------
> And sometimes not:
> ------------------------- >8 -------------------------
> $ a=3;echo | while [ $a -lt 6 ];do a=$[a+1];done; echo "Res:" $a
> Res: 3
> ------------------------- >8 -------------------------
> I think, it works like a subshell, but it shouldn't.
Ah, actually I think it should. Doesn't the pipe fork a seperate process?