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 "Wang Xu (JIRA)" <ji...@apache.org> on 2010/11/17 00:01:20 UTC

[jira] Commented: (HADOOP-7038) saveVersion script includes an additional \r while running whoami under windows

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

Wang Xu commented on HADOOP-7038:
---------------------------------

here is the different between Windows bin native output and Cygwin bin output:
{quote}
bash-3.2$ which whoami
*/cygdrive/c/Windows/system32/whoami*
bash-3.2$ whoami|od -x
0000000 6570 6361 5c65 6e67 7761 7875 {color:red}0a0d{color}
0000016
bash-3.2$ which date
*/usr/bin/date*
bash-3.2$ date|od -x
0000000 7554 2065 6f4e 2076 3631 3120 3a34 3135
0000020 303a 2032 2020 2020 3032 3031 {color:red}000a{color}
0000035
{quote}

An unwanted '0x0d'


> saveVersion script includes an additional \r while running whoami under windows
> -------------------------------------------------------------------------------
>
>                 Key: HADOOP-7038
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7038
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build
>         Environment: Windows 7 / Eclipse 
>            Reporter: Wang Xu
>            Assignee: Wang Xu
>            Priority: Minor
>         Attachments: HADOOP-7038.diff
>
>
> I built common under windows occasionally, and found it failed because the 'user' in build/src/o/a/h/package-info.java is "myhostmyname^M".
> It seems because the whoami of windows give a string with '\n\r' rather than '\n' only. thus I add an additional tr for it to eliminate the problem.
> Since only windows would generate '\n\r' output, I think it won't harm to any other platform.

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