>it has a subtle scoping gotcha that drove me nuts the
>first time I tripped over it - anybody know what I'm
>referring to?
No? Then how about this?
result=badness # init with failure default
spewSomeKindOfOutput | while read input
do
result=goodness
done
echo $result
What is the output?
*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************
- Re: Another (simpler) bash scripting question..... pll
- Re: Another (simpler) bash scripting questi... Bob Bell
- Re: Another (simpler) bash scripting questi... Benjamin Scott
- Re: Another (simpler) bash scripting qu... Jerry Feldman
- Re: Another (simpler) bash scripting qu... Derek D. Martin
- Re: Another (simpler) bash scripting qu... pll
- RE: Another (simpler) bash scripting question... Mansur, Warren
- Re: Another (simpler) bash scripting question... John Abreau
- RE: Another (simpler) bash scripting question... Jerry Feldman
- Re: Another (simpler) bash scripting question... Michael O'Donnell
- Re: Another (simpler) bash scripting question..... Michael O'Donnell
- Re: Another (simpler) bash scripting questi... Kevin D. Clark
- Re: Another (simpler) bash scripting qu... Derek D. Martin
- Re: Another (simpler) bash scripti... Steven W. Orr
- Re: Another (simpler) bash scr... Michael O'Donnell
- Re: Another (simpler) bash scr... Benjamin Scott
- Re: Another (simpler) bash scr... Michael O'Donnell
- Re: Another (simpler) bash scr... Benjamin Scott
- Re: Another (simpler) bash scr... Michael O'Donnell
- Re: Another (simpler) bash scr... Benjamin Scott
- Re: Another (simpler) bash scr... pll
