Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Bash looping issue [SOLVED]
- Date: Tue, 12 Oct 2010 13:48:05 -0500
- From: "Daniel A. Ramaley" <daniel.ramaley@example.com>
- Subject: Re: [tlug] Bash looping issue [SOLVED]
- References: <201010121014.06546.daniel.ramaley@example.com> <AANLkTim74KwhbtCAmX4s_p3osH9wfL+Te=ZK8oEwULEQ@example.com>
- Organization: Drake University
- User-agent: KMail/1.13.5 (Linux/2.6.32-5-amd64; KDE/4.4.5; x86_64; ; )
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
- References:
- [tlug] Bash looping issue
- From: Daniel A. Ramaley
- Re: [tlug] Bash looping issue
- From: Romeo Theriault
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Network annoyingly not starting on boot [SOLVED]
- Next by Date: Re: [tlug] Bash looping issue
- Previous by thread: Re: [tlug] Bash looping issue
- Next by thread: [tlug] Commonly Unusable Printjob Sinkhole
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links