X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=gnulib-tool;h=669931c034ed19b656276a09e48d524dbd044541;hb=b0b422614cc9fda29e9675dcc6f2a377b3d517a8;hp=ed693e01632100453e343a1d7925b2f90d6ccd8c;hpb=97ddbcfa0bd12b45d00b74d298f6d14832981ee4;p=gnulib.git diff --git a/gnulib-tool b/gnulib-tool index ed693e016..669931c03 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -898,6 +898,9 @@ if test "X$1" = "X--no-reexec"; then shift fi +# Unset CDPATH. Otherwise, output from 'cd dir' can surprise callers. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + # Command-line option processing. # Removes the OPTIONS from the arguments. Sets the variables: # - mode one of: list, find, import, add-import, remove-import,