X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=gnulib-tool;h=4e7d45e4ea41dd1105448357c6d93938f0ec298d;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=ed693e01632100453e343a1d7925b2f90d6ccd8c;hpb=5d706a3590ab4b393e845a1d73787faaae48d408;p=gnulib.git diff --git a/gnulib-tool b/gnulib-tool index ed693e016..4e7d45e4e 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 @@ -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,