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

Raghu Angadi commented on HADOOP-3175:
--------------------------------------

bq.  I don't see why rest (ex. '> /dev/null') 
"> /dev/null" is not part of the command. That is interpreted by the user 
shell. I don't think there is a requirement that "-" should only be the last 
arg. Could also add test case where it is not the last arg to your test?

Would replacing {noformat}if (args[pos].charAt(0) == '-')  ... {noformat} with  
{noformat} if (args[pos].charAt(0) == '-' && arg[pos].length > 0) ... 
{noformat} be enough for the fix?

> "-get file -" does not work
> ---------------------------
>
>                 Key: HADOOP-3175
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3175
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.17.0
>            Reporter: Raghu Angadi
>            Assignee: Edward J. Yoon
>            Priority: Blocker
>             Fix For: 0.17.0
>
>         Attachments: 3175.patch
>
>
> {noformat}
> $ bin/hadoop fs -get file - > /dev/null
> Usage: java FsShell -get [-ignoreCrc] [-crc] <src> <localdst>
> get: Illegal option -
> {noformat}
> In 0.16, it used to write 'file' to stdout.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to