+2012-04-19 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: don't let a user's CDPATH setting affect this script
+ When CDPATH is set, cd will sometimes generate output.
+ When "cd" is run in a subshell whose output matters, that
+ surprising-to-some output can cause malfunction.
+ Unsetting CDPATH turns off this shell "feature."
+ * build-aux/bootstrap (CDPATH): Unset.
+ Reported by Reuben Thomas in:
+ http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
+ and inspired by his patch here:
+ http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
+
2012-04-16 Akim Demaille <akim@lrde.epita.fr>
and Jim Meyering <meyering@redhat.com>
#! /bin/sh
# Print a version string.
-scriptversion=2012-04-16.16; # UTC
+scriptversion=2012-04-19.14; # UTC
# Bootstrap this package from checked-out sources.
LC_ALL=C
export LC_ALL
+# Ensure that CDPATH is not set. Otherwise, the output from cd
+# would cause trouble in at least one use below.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
local_gl_dir=gl
me=$0