You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Fabian Alenius (JIRA)" <ji...@apache.org> on 2012/08/15 11:27:38 UTC
[jira] [Commented] (HDFS-179) hadoop fs -test -d should return
different codes for difference cases
[ https://issues.apache.org/jira/browse/HDFS-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434898#comment-13434898 ]
Fabian Alenius commented on HDFS-179:
-------------------------------------
Just ran into this bug. Is anyone currently working on fixing it?
> hadoop fs -test -d should return different codes for difference cases
> ---------------------------------------------------------------------
>
> Key: HDFS-179
> URL: https://issues.apache.org/jira/browse/HDFS-179
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Runping Qi
>
> Currently, hadoop fs -test -d path returns 0 for the case where path is a directory and -1 for all the other cases such as execution errors, path does not exists, and path is a file.
> It is better to use different return codes to differentiate these cases.
> Similar issues also apply to hadoop fs -test -e|z
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira