delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/08/14:29:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Fri, 8 Jul 2005 14:29:48 -0400
From: "Shaffer, Kenneth" <shaffek AT sciatl DOT com>
X-X-Sender: shaffek AT Crunch DOT bcgssbd DOT sciatl DOT com
Reply-To: kenneth DOT shaffer AT sciatl DOT com
To: cygwin AT cygwin DOT com
Subject: bash not noticing when child done
Message-ID: <Pine.CYG.4.58.0507081357030.1420@Crunch.bcgssbd.sciatl.com>
MIME-Version: 1.0

I've upgraded my cygwin and bash yesterday.

I'm puzzled by what I see and every attempt I've made at generating a
smaller test case has failed.

Anyway, one script prints a message that it's about to call another
script. On return from the script, another message is printed. The called
script notices certain files are not present, then prints a message to
that effect and exits with an error code.

But, the message 2nd message on the calling script never prints and I'm
just stumped. All I can think is that bash is unaware that the script
exited or terminated.

A portion of the calling script: uptime2xls

echo "$me($$): `date` start rtf2uptime"
rtf2uptime
#raw24csv2xls
echo "$me($$): `date` remove any left over raw24 csv files"

A portion of the rtf2uptime script:

FILES="`ls *rtf 2>/dev/null`"
if [ -z "$FILES" ]; then
    echo "No .rtf files found"
    exit 1
fi

The output I see:

uptime2xls(2120): Fri Jul  8 09:39:19 EDT 2005 start rtf2uptime
No .rtf files found

Note that the "remove any left over raw24 ..." message does not print.


--
Ken Shaffer



     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.


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