diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 95c436f6f0..c33fed5e40 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -230,6 +230,9 @@ Release 2.0.3-alpha - Unreleased BUG FIXES + HADOOP-8795. BASH tab completion doesn't look in PATH, assumes path to + executable is specified. (Sean Mackrory via atm) + Release 2.0.2-alpha - 2012-09-07 INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/contrib/bash-tab-completion/hadoop.sh b/hadoop-common-project/hadoop-common/src/contrib/bash-tab-completion/hadoop.sh index b872ce8d35..725aee781b 100644 --- a/hadoop-common-project/hadoop-common/src/contrib/bash-tab-completion/hadoop.sh +++ b/hadoop-common-project/hadoop-common/src/contrib/bash-tab-completion/hadoop.sh @@ -26,7 +26,7 @@ _hadoop() { COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} - script=${COMP_WORDS[0]} + script=`which ${COMP_WORDS[0]}` # Bash lets you tab complete things even if the script doesn't # exist (or isn't executable). Check to make sure it is, as we