aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Edwards <pme@gcc.gnu.org>2001-03-13 17:56:30 +0000
committerPhil Edwards <pme@gcc.gnu.org>2001-03-13 17:56:30 +0000
commit65aac28aa2837f43df0d36a1e6368d1836946669 (patch)
treec980084903e2f8a168a5c4cf75f34435034102ed
parentca29d1dcff95b0fe9fafe84983727437714720f4 (diff)
downloadgcc-65aac28aa2837f43df0d36a1e6368d1836946669.zip
gcc-65aac28aa2837f43df0d36a1e6368d1836946669.tar.gz
gcc-65aac28aa2837f43df0d36a1e6368d1836946669.tar.bz2
mkcheck.in: Fix IFS regression for non-bash-2.01 hosts.
2001-03-13 Phil Edwards <pme@sources.redhat.com> * mkcheck.in: Fix IFS regression for non-bash-2.01 hosts. From-SVN: r40441
-rw-r--r--libstdc++-v3/ChangeLog4
-rwxr-xr-xlibstdc++-v3/mkcheck.in6
2 files changed, 9 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 819e77c..fd8a5da 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-13 Phil Edwards <pme@sources.redhat.com>
+
+ * mkcheck.in: Fix IFS regression for non-bash-2.01 hosts.
+
2001-03-12 Felix Lee <flee@redhat.com>
* mkcheck.in: workaround for bash 2.01 IFS bug.
diff --git a/libstdc++-v3/mkcheck.in b/libstdc++-v3/mkcheck.in
index 9788d18..3ad79d8 100755
--- a/libstdc++-v3/mkcheck.in
+++ b/libstdc++-v3/mkcheck.in
@@ -52,7 +52,11 @@ esac
# Compute the flags necessary to run the testsuite.
saved_ifs=$IFS
# bash 2.01 does the wrong thing with $* if IFS doesn't include space
-IFS=': '
+if test ${BASH_VERSINFO[1]} = 01 ; then
+ IFS=': '
+else
+ IFS=':'
+fi
set `../tests_flags ${query} $*` || exit 1
BUILD_DIR=$1; SRC_DIR=$2; PREFIX_DIR=$3; CXX=$4; CXXFLAGS=$5; INCLUDES=$6; LIBS=$7;
IFS=$saved_ifs