Browse Source

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/branches/branch-2@1384445 13f79535-47bb-0310-9956-ffa450edef68
Aaron Myers 12 năm trước cách đây
mục cha
commit
ae71fc2a24

+ 5 - 2
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -18,8 +18,11 @@ Release 2.0.3-alpha - Unreleased
 
   BUG FIXES 
 
-   HADOOP-7688. When a servlet filter throws an exception in init(..), the Jetty server failed silently.
-   (umamahesh)
+    HADOOP-7688. When a servlet filter throws an exception in init(..), the
+    Jetty server failed silently. (umamahesh)
+
+    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 
 

+ 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