This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Varibles not working in do loop...


Larry Hall (Cygwin) formulated on Monday :
Andrew Louie wrote:
On 4/2/07, Kevin Markle wrote:
Larry Hall (Cygwin) expressed precisely :
> Kevin Markle wrote:

What does this mean please and or would you send me your copy that
works fine?
"$LOG" == > "".  In these cases, the "hang" is 'cat' waiting for input
from the command
> line.

I think he means that in the line:


UPDATES_NEEDED=`cat $LOG | grep "updates detected" | tail -1`

cat $LOG... will hang if $LOG == "" because "cat" is waiting for input.



Precisely.

That helps but my problem is the line above where it get the value for LOG for whatever reason doesn't get the value of LOG in the for loop but can outside of the loop... :o)





-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]