Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: 31 Jul 2001 09:29:30 -0500 Message-ID: <095401c119cd$363ad560$8a00440a@LONGBERRY> From: "David King" To: cygwin AT cygwin DOT com Subject: version 1.3.2 has bug in correctly returning error code condition on WIN 2000 operating system MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > > Hi Christopher, > > Where should I report a bug that I've found with the latest version of = > cygwin? > > We've got 7 boxes running cygwin on NT and Windows 2000 boxes without = > any > problems with the code below. We've just installed 2 boxes with the = > latest 1.3.2, one running > on Windows NT 4.0 and another on Windows 2000. =20 > > Both are having problems with the following perl code: > > echo -e "submit_random.sh: INFO - No errors found....removing top-level = > simulation directory\n" > rm -f *.log *.sum transcript > > # remove the SIMOUT directory of passing testcase > cd .. > rm -rf "${MOD_HOSTNAME}_$$_${TIME}" = > <------------------------------------- PROBLEM IS HERE > > if (($? !=3D 0)) > then > echo -e "submit_random.sh: ERROR - Could not remove PASSING directory = > ${MOD_HOSTNAME}_$$_${TIME}" > # don't know why you couldn't do this.....sleep for a while and try = > it again.... > sleep 30 > rm -rf "${MOD_HOSTNAME}_$$_${TIME}" > exit -1 > fi > > What I am seeing is TWO problems. First is that the rm -rf is NOT going = > thru for > some reason. The directory definitly exists and the permissions appear = > OK as far > as I can tell. The second problem is that the return code from the = > command is zero, ie, I=20 > don't detect any problems with the rm -rf command now working. =20 > > All appears to be OK. > > Any suggestions? > > > David A. King > Hardware Verification Engineer > Parthus Technologies > Acceleration Business Unit > (512) 249-2330 Ext. 226 > kingboy AT parthus DOT com > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/