bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: array variables set in while loop not known outside loop


From: Paul Jarc
Subject: Re: array variables set in while loop not known outside loop
Date: Thu, 08 Aug 2002 13:37:15 -0400
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

"David P. Kitzinger" <address@hidden> wrote:
> echo "XXX
> YYY" | while read X
> do
>     bf[i]="$X"
>     echo "set element $i to ${bf[i]}"
>     ((i = i + 1))
> done

See entry E4 in the bash FAQ.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]