X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Authentication-Warning: itservs.wilkes.edu: apache set sender to fdonahoe AT wilkes DOT edu using -f Message-ID: <1104530868.41d5cdb4750b2@webmail.wilkes.edu> Date: Fri, 31 Dec 2004 17:07:48 -0500 From: fdonahoe AT wilkes DOT edu To: djgpp-workers AT delorie DOT com Subject: Re: Strange failure of egrep stub MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2 X-Originating-IP: 146.94.1.206 Reply-To: djgpp-workers AT delorie DOT com Quoting Eli Zaretskii : > Which part of the test fails? The shell script you posted invokes > egrep 4 times. Which ones of the invocations fail? > The failure came on the very first time egrep was invoked. Rewritten as: egrep 'This is (ifnothtml|ifinfo|ifnottex) text' cond.out \ >./cond-1 || exit 2 fails with 0 bytes in cond-1. grep is never given the chance to produce its output which would be correct! If grep -E be substituted for egrep in all four instances, cond-[1-4] are left with correct data and the whole test is passed. My conclusion is that egrep.exe invokes the djgpp2/coff grep differently from the unsuopported coff grep, so that exit 2 happens before grep produces its output. > Ultimately, judging by the symptoms you described, I think there's > no > way to debug this except to reproduce the problem in some simpler > situation, and then run it under GDB to see what's going on. > Regards, Frank ----------------------------------------------------------------------- This mail was sent through Wilkes Webmail: http://webmail.wilkes.edu Wilkes Webmail is using IMP: http://horde.org/imp/