1
0
Просмотр исходного кода

HADOOP-8795. BASH tab completion doesn't look in PATH, assumes path to executable is specified. Contributed by Sean Mackrory.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1384436 13f79535-47bb-0310-9956-ffa450edef68
Aaron Myers 12 лет назад
Родитель
Сommit
cae6885b71

+ 3 - 0
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

+ 1 - 1
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