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

[CMD] {FOR /L %%parameter IN (start,step,end) DO type FILE >> FILE} cause an infinite loop.

    XMLWordPrintable

Details

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

    Description

      File tested: cmd.exe (reactos-bootcd-0.4.15-dev-537-g35de9f3-x86)

      Steps to reproduce the error:

      1. Start ReactOS or Windows XP.

      2. Run ReactOS CMD.

      3. Run a  batch with this content:

      echo "Let's break ReactOS" > example.txt
      for /l %%i in (1,1,2) do type example.txt >> example.txt
      

      -------

      Expected result with the Windows CMD: Finishes with 4 lines written.

      Result in ReactOS with the ReactOS CMD: A typing infinite loop of the string start. The system is not able to handle with it, mostly freeze in the loop.

      Result in XP-SP3 with the ReactOS CMD: A typing infinite loop of the string start. The system is continuing the loop until you got null space.

      Attachments

        1. cmd.exe
          285 kB
          hbelusca
        2. cmd.exe
          285 kB
          hbelusca

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: