X-Spam-Check-By: sourceware.org Message-ID: <5abc24640704021326p2bfbcc0che61f4aec02964ec1@mail.gmail.com> Date: Mon, 2 Apr 2007 16:26:55 -0400 From: "Andrew Louie" To: kmarkle AT pbs DOT org, cygwin AT cygwin DOT com Subject: Re: Varibles not working in do loop... In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46116207 DOT 8060009 AT cygwin DOT com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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. -- -Andrew Louie -- 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/