X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f From: "Tim Van Holder" To: "'Eli Zaretskii'" Cc: Subject: Re: bash's 'test' is inconsistent on XP (causing autoconf testsuite failures) Date: Sun, 6 Jan 2002 15:51:49 +0100 Message-ID: <000401c196c1$abcba8b0$d07c76d5@zastaixp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > > Unfortunately, our bash (2.05) returns 'true' for > > 'test -f /dev/null'; so it claims that /dev/null is a > > regular file and then complains it isn't. So either > > 'test' or '.' needs fixing. > > "test -f /dev/null" does TRT for me on Windows 98SE and on > NT4. So I'm > guessing that what you see is due to a broken support for DOS > devices on > W2K and XP. Try setting LFN=n and see if "test -f" works then. Right - 'LFN=n test -f' DTRT, LFN=y doesn't. What annoys me is that '.' doesn't have the same behaviour; I'm OK with test -f returning true, but then '.' should work without complaining. I'll see if Akim accepts an autoconf patch to use LFN=n with that test; otherwise, I'll just keep it as a local patch for the 2.53 release. BTW, is there any way of avoiding the fact that DJGPP programs resize the DOS box to 80x50 under Win2K/XP? Since I usually run at 132x60, the flashing back and forth gets annoying.