Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86F01117F6 for ; Sat, 23 Aug 2014 14:08:12 +0000 (UTC) Received: (qmail 59526 invoked by uid 500); 23 Aug 2014 14:08:12 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 59484 invoked by uid 500); 23 Aug 2014 14:08:12 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 59462 invoked by uid 99); 23 Aug 2014 14:08:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Aug 2014 14:08:12 +0000 Date: Sat, 23 Aug 2014 14:08:11 +0000 (UTC) From: "Hudson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10998) Fix bash tab completion code to work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-10998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14108004#comment-14108004 ] Hudson commented on HADOOP-10998: --------------------------------- SUCCESS: Integrated in Hadoop-Hdfs-trunk #1846 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1846/]) HADOOP-10998. Fix bash tab completion code to work (Jim Hester via aw) (aw: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1619887) * /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt * /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/contrib/bash-tab-completion/hadoop.sh > Fix bash tab completion code to work > ------------------------------------ > > Key: HADOOP-10998 > URL: https://issues.apache.org/jira/browse/HADOOP-10998 > Project: Hadoop Common > Issue Type: Improvement > Components: scripts > Environment: Hadoop 2.0.0-cdh4.2.1 > Reporter: Jim Hester > Assignee: Jim Hester > Priority: Trivial > Fix For: 3.0.0, 2.6.0 > > Attachments: HADOOP-10998.patch > > > The included version of bash completion has not been updated in almost two years and does not work correctly with more recent versions of Hadoop. > The command substitutions in the script were using backticks, which were interpolating variables before they were executed and breaking the script. In particular the awk commands were breaking due to this interpolation. > The attached patch changes the backticks to {{$(command)}} style for command substitution and updates the script to work properly with newer versions of hadoop. > I tested the script using {{zsh 5.0.5}}, {{zsh 4.3.10]}, {{bash-4.1.2}} and {{bash-3.2}}. Hadoop versions tested were cloudera version {{2.0.0-cdh4.2.1}} and briefly Apache {{2.5.0}}. -- This message was sent by Atlassian JIRA (v6.2#6252)