delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/02/16:05:58

X-Spam-Check-By: sourceware.org
Message-ID: <46116207.8060009@cygwin.com>
Date: Mon, 02 Apr 2007 16:05:27 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061221 Fedora/1.5.0.9-1.fc4.remi Thunderbird/1.5.0.9 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Varibles not working in do loop...
References: <mn DOT 13aa7d74a3db2d48 DOT 51129 AT pbs DOT org>
In-Reply-To: <mn.13aa7d74a3db2d48.51129@pbs.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Kevin Markle wrote:
> Hello,
> I'm running this script and line 19 works when I create the variablea 
> and type the command at a shell prompt. But when I try to run it from 
> within the for loop it does not return a value and hangs?
> 


A doctored up version (to fill in things you left out and make it consistent
with my system) works fine.  I found the "hang" too but only if "$LOG" ==
"".  In these cases, the "hang" is 'cat' waiting for input from the command
line.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019