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 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Re: cygwin bughunt (snapshot) Date: Mon, 28 Feb 2005 18:53:50 +0100 Message-ID: <79F81D5F4790D344B05F489CE2AC8AB7146D63@dubexdc03.dubex.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "David Dindorp" To: X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j1SI6FX6018284 Bash seems to think that it's child has terminated prematurely. Has anyone experienced something similar? Evidence: See the order of execution in the script below, compare with what bash does (further below). Version: snapshot 20050226 / bash 3.0. If I'm grossly missing anything from my error reports, could you please point it out? Thank you... Script: ====================== tar --remove-files --ignore-failed-read -cvf \ "$arcrfname" "$arcsourcedir" cerr=$? sleep 30 if [ $cerr -ne 0 ]; then echo "`date +'%Y-%m-%d %H:%M:%S'`: TAR error $cerr." fi if [ -f "$arcrfname" ]; then echo "`date +'%Y-%m-%d %H:%M:%S'`: TAR OK." else echo "`date +'%Y-%m-%d %H:%M:%S'`: TAR failed." fi ====================== Log file: ====================== +++ tar --remove-files --ignore-failed-read -cvf \ /0007-02-2005-02-28-14-05-06-readyarchive_quick.tar ready-quick +++ cerr=0 +++ sleep 30 +++ '[' 0 -ne 0 ']' +++ '[' -f 0007-02-2005-02-28-14-05-06-readyarchive_quick.tar ']' ++++ date '+%Y-%m-%d %H:%M:%S' tar: Removing leading `/' from member names /var/ready-quick/ /var/ready-quick/file1 /var/ready-quick/file2 /var/ready-quick/file3 /var/ready-quick/file4 /var/ready-quick/file5 +++ echo '2005-02-28 14:05:07: TAR failed.' ====================== -- 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/