www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/01/06/07:59:50

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: <djgpp-workers AT delorie DOT com>
Subject: bash's 'test' is inconsistent on XP (causing autoconf testsuite failures)
Date: Sun, 6 Jan 2002 13:59:39 +0100
Message-ID: <000001c196b2$00b6f560$d07c76d5@zastaixp>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.3416
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Reply-To: djgpp-workers AT delorie DOT com

autoconf's testsuite shows several failures caused by
the same issue.  configure tries to source /dev/null
as a cache file, but that causes bash to complain that
/dev/null is not a regular file.  And that causes stderr
to differ from the expected result.
Now configure knows that some shells can't source
/dev/null (or any other special file), and so it
includes a test:

  if test -f $cache_file; then
    ... source the cache file
  fi

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.

- Raw text -


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