X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=blobdiff_plain;f=gnulib-tool;fp=gnulib-tool;h=13aac1ab92fca2b5923e95c265efa8a4a28e4034;hp=84be8a713d0f1cb539c9e006f232fc33da3337c1;hb=0f81b07e4fce25a25eb94c363f0624d7b2b99bca;hpb=e1c466d11a91615c413789ea8bc3ec358f2c6aa9 diff --git a/gnulib-tool b/gnulib-tool index 84be8a713..13aac1ab9 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -1,6 +1,6 @@ #! /bin/sh # -# Copyright (C) 2002-2013 Free Software Foundation, Inc. +# Copyright (C) 2002-2014 Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -899,6 +899,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,