Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 90307 invoked from network); 16 Nov 2010 23:01:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 23:01:13 -0000 Received: (qmail 71985 invoked by uid 500); 16 Nov 2010 23:01:45 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 71928 invoked by uid 500); 16 Nov 2010 23:01:44 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 71907 invoked by uid 99); 16 Nov 2010 23:01:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 23:01:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 23:01:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAGN1Ksf016072 for ; Tue, 16 Nov 2010 23:01:20 GMT Message-ID: <8350427.129431289948480051.JavaMail.jira@thor> Date: Tue, 16 Nov 2010 18:01:20 -0500 (EST) From: "Wang Xu (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-7038) saveVersion script includes an additional \r while running whoami under windows In-Reply-To: <6859389.129061289947393597.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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.