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
This commit is contained in:
Aaron Myers 2012-09-13 18:02:46 +00:00
parent 9bfa8fd529
commit ae71fc2a24
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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