Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-18672

qmake: replace is inconsistent with backslashes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • 5.0.0
    • 4.7.2
    • Build tools: qmake
    • None

    Description

      test = a\\b
      message($$replace(test, \\, /)) # a\b
      message($$replace(test, \\\\, /)) #a/b
      message($$replace(test, \\\\, \\\\)) #a\\b
      

      More than the others, the last line doesn't make sense at all. It should not escape twice for the search value.

      An expected behavior would be:

      test = a\\b
      message($$replace(test, \\, /)) # a/b
      message($$replace(test, \\, \\\\)) #a\\b
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            buddenha Oswald Buddenhagen
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes