www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/01/06/11:42:39

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
To: "'Eli Zaretskii'" <eliz AT is DOT elta DOT co DOT il>
Cc: <djgpp-workers AT delorie DOT com>
Subject: Re: bash's 'test' is inconsistent on XP (causing autoconf testsuite failures)
Date: Sun, 6 Jan 2002 17:42:30 +0100
Message-ID: <000301c196d1$21f83350$d07c76d5@zastaixp>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.3416
Importance: Normal
In-Reply-To: <3405-Sun06Jan2002181456+0200-eliz@is.elta.co.il>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
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

> > 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.
> 
> What exactly is the problem with "."?  I'm afraid I didn't quite
> understand that from your original message.

configure loads its cache file at startup; as of autoconf 2.5x, the
cache file defaults to /dev/null (i.e. cache disabled).
So it runs ". /dev/null", which in our bash gives:

 $ . /dev/null
 bash.exe: .: /dev/null: not a regular file

Normally, this is fine, because configure first uses 'test -f' to
ensure it IS a regular file.  Unfortunately, our bash's 'test -f'
thinks it IS a regular file, while its '.' doesn't.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019