The "Found xxx items" header that is printed with a file listing will often appear multiple times in not-so-helpful ways in light of globbing. For example:
$ hadoop fs -ls 'teradata/*' Found 1 items -rw-r--r-- 1 someuser somegroup 0 2012-08-06 16:55 teradata/_SUCCESS Found 1 items -rw-r--r-- 1 someuser somegroup 5000 2012-08-06 16:55 teradata/part-m-00000 Found 1 items -rw-r--r-- 1 someuser somegroup 5000 2012-08-06 16:55 teradata/part-m-00001
Seems like it should just print "Found 3 items" once at the top, or maybe not even print a header at all.
HDFS-6058 Fix TestHDFSCLI failures after HADOOP-8691 change
- is duplicated by
HADOOP-10369 hadoop fs -ls prints "Found 1 items" for each entry when globbing
- is related to
HADOOP-10385 '-ls /dir/*' prints nothing if there are empty subdirectories