Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-13682

cmd does not properly handle escapes with EnableDelayedExpansion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.4.15
    • Shell
    • None

    Description

      @echo off
      setlocal enabledelayedexpansion
      echo line1!
      echo line2^!
      echo line3^^!
      endlocal

      The above batch file should produce the following output:

      line1
      line2
      line3!

      In ROS it outputs:

      line1
      line2
      line3^

      This shows when running ROS's configure.cmd inside ROS.

      Explanation for how the parsing supposedly should work: https://stackoverflow.com/a/5620353

      Attachments

        Issue Links

          Activity

            People

              hbelusca hbelusca
              ThFabba ThFabba
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: