Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7038

saveVersion script includes an additional \r while running whoami under windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: build
    • Labels:
      None
    • Environment:

      Windows 7 / Eclipse

    • Hadoop Flags:
      Reviewed

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              gnawux Wang Xu
              Reporter:
              gnawux Wang Xu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: