Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 8 Jul 2005 14:29:48 -0400 From: "Shaffer, Kenneth" 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: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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/