Mailing List Archive


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

Re: [tlug] Bash looping issue [SOLVED]



On 2010-10-12 at 11:37:08, Romeo Theriault wrote:
>Looks like bash is starting the while-read loop in a subshell so
>you're losing your variable assignments when the subshell exits. This
>page talks about a few ways around this:
>
>http://fvue.nl/wiki/Bash:_Piped_%60while-read'_loop_starts_subshell

Wow. I had no idea that while-read needed a subshell. Thanks! I managed 
to get it working.

__
Daniel A. Ramaley
Network Engineer 2

Dial Center 118, Drake University
2407 Carpenter Ave / Des Moines IA 50311 USA
Tel: +1 515 271-4540
Fax: +1 515 271-1938
E-mail: daniel.ramaley@example.com


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links