groovy
  1. groovy
  2. GROOVY-5113

Windows -e option fails when reserved characters are used in the script

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.8, 1.8.3
    • Fix Version/s: None
    • Component/s: Groovysh
    • Labels:
      None
    • Number of attachments :
      0

      Description

      bin\groovy -e "System.properties.each

      { k,v -> println(k + ': ' + v) }

      "
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      script_from_command_line: 1: unexpected token: k @ line 1, column 25.
      System.properties.each

      { k,v - + ': ' + v) }

      Caused by the > character not being properly escaped somehow.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Rob Elsner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: