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:
parent
ba862fc744
commit
e81398da81
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue