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

Todd Lipcon commented on HADOOP-6618:
-------------------------------------

It would be a bigger change, but you could call Pattern.quote() on each 
character that wasn't already determined to have special significance in the 
other branches of the if.

(I'm fine with your patch, just seems inelegant to manually specify this list)

> fs -ls does not work if a path name contains the ^ character
> ------------------------------------------------------------
>
>                 Key: HADOOP-6618
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6618
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Tsz Wo (Nicholas), SZE
>         Attachments: c6618_20100305.patch
>
>
> Using a wildcard, the file is found.
> {noformat}
> -bash-3.1$ hadoop fs -ls k20d2f4/bin-2\?04+1_AF650AE776488A4D
> Found 1 items
> -rw-------   3 tsz users         17 2010-03-05 19:43 
> /user/tsz/k20d2f4/bin-2^04+1_AF650AE776488A4D
> {noformat}
> Replace the wildcard with ^, the file is not found.
> {noformat}
> -bash-3.1$ hadoop fs -ls k20d2f4/bin-2^04+1_AF650AE776488A4D
> ls: Cannot access k20d2f4/bin-2^04+1_AF650AE776488A4D: No such file or 
> directory.
> {noformat}

-- 
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