From cdcb8514a030cfd0934071b426274a8b7838021c Mon Sep 17 00:00:00 2001 From: Tsz-wo Sze Date: Fri, 13 Nov 2009 22:10:01 +0000 Subject: [PATCH] HADOOP-6314. Fix "fs -help" for the "-count" commond. Contributed by Ravi Phulari git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@836019 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 +++ src/java/org/apache/hadoop/fs/FsShell.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 1de75197af..8990179372 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -45,6 +45,9 @@ Trunk (unreleased changes) HADOOP-6341. Fix test-patch.sh for checkTests function. (gkesavan) + HADOOP-6314. Fix "fs -help" for the "-count" commond. (Ravi Phulari via + szetszwo) + Release 0.21.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/src/java/org/apache/hadoop/fs/FsShell.java b/src/java/org/apache/hadoop/fs/FsShell.java index 6f7d6b059e..e3c895b252 100644 --- a/src/java/org/apache/hadoop/fs/FsShell.java +++ b/src/java/org/apache/hadoop/fs/FsShell.java @@ -1568,7 +1568,7 @@ private void printHelp(String cmd) { System.out.println(chown); } else if ("chgrp".equals(cmd)) { System.out.println(chgrp); - } else if (Count.matches(cmd)) { + } else if (Count.NAME.equals(cmd)) { System.out.println(Count.DESCRIPTION); } else if ("help".equals(cmd)) { System.out.println(help);