OSDN Git Service

2001-03-13 Phil Edwards <pme@sources.redhat.com>
authorpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2001 17:56:30 +0000 (17:56 +0000)
committerpme <pme@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2001 17:56:30 +0000 (17:56 +0000)
* mkcheck.in:  Fix IFS regression for non-bash-2.01 hosts.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40441 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/mkcheck.in

index 819e77c..fd8a5da 100644 (file)
@@ -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.
index 9788d18..3ad79d8 100755 (executable)
@@ -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