[
https://issues.apache.org/jira/browse/HADOOP-8788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453085#comment-13453085
]
Daryn Sharp commented on HADOOP-8788:
-------------------------------------
Yes, the ls command currently works more like find. It'll be an incompatible
change which is why I didn't fix it during the shell overhaul, but I think it
would be a good change so long as a find command is also added.
> hadoop fs -ls can print file paths according to the native ls command
> ---------------------------------------------------------------------
>
> Key: HADOOP-8788
> URL: https://issues.apache.org/jira/browse/HADOOP-8788
> Project: Hadoop Common
> Issue Type: Improvement
> Components: fs
> Reporter: Hemanth Yamijala
> Priority: Minor
>
> hadoop fs -ls dirname lists the paths in the following manner:
> dirname\file1
> dirname\file2
> Basically, dirname is repeated. This is slightly confusing because you get an
> impression that there's a dirname directory under the specified input
> In contrast, the native ls command doesn't do this.
> When given a glob as input, the native ls command prints it out as follows:
> dirname1:
> file1
> dirname2:
> file1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira