Merge r1574261 from trunk

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1574262 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Haohui Mai 2014-03-05 00:03:56 +00:00
parent ba862fc744
commit e81398da81
2 changed files with 4 additions and 1 deletions

View File

@ -55,6 +55,9 @@ Release 2.4.0 - UNRELEASED
HADOOP-10314. The ls command help still shows outdated 0.16 format.
(Rushabh S Shah via kihwal)
HADOOP-8691. FsShell can print "Found xxx items" unnecessarily often.
(Daryn Sharp via wheat9)
OPTIMIZATIONS
BUG FIXES

View File

@ -104,7 +104,7 @@ class Ls extends FsCommand {
@Override
protected void processPaths(PathData parent, PathData ... items)
throws IOException {
if (!isRecursive() && items.length != 0) {
if (parent != null && !isRecursive() && items.length != 0) {
out.println("Found " + items.length + " items");
}
adjustColumnWidths(items);