Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8176033

New cygwin grep does not match \r as newline

    XMLWordPrintable

Details

    • b160
    • windows

    Backports

      Description

        In our configure code for rewriting cygwin paths reliably, we use this construct to find the root of the cygwin installation:

        # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
        cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"`

        This used to work fine for a long time, but with the latest version of cygwin grep, it no longer removes \r from the string. A more robust implementation would be to instead use tr to explicitly remove both \r and \n.

        Attachments

          Issue Links

            Activity

              People

                erikj Erik Joelsson
                erikj Erik Joelsson
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: