You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "DeepakVohra (JIRA)" <ji...@apache.org> on 2014/11/06 23:46:34 UTC

[jira] [Commented] (HADOOP-11277) hdfs dfs test command "returning 0 if true." instead of what should be "returning 1 if true."

    [ https://issues.apache.org/jira/browse/HADOOP-11277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14201105#comment-14201105 ] 

DeepakVohra commented on HADOOP-11277:
--------------------------------------

Why does another tutorial list Returns 1 if true?

-test -[ezd] path	Returns 1 if path exists; has zero length; or is a directory, or 0 otherwise.

https://developer.yahoo.com/hadoop/tutorial/module2.html#commandref

> hdfs dfs test command  "returning 0 if true." instead of what should be "returning 1 if true."
> ----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-11277
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11277
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.5.0
>            Reporter: DeepakVohra
>
> The CDH5 File System (FS) shell commands documentation has an error. The test command lists  "returning 0 if true."  for all options. Should be "returning 1 if true."
> http://archive.cloudera.com/cdh5/cdh/5/hadoop/hadoop-project-dist/hadoop-common/FileSystemShell.html#ls



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)