[ 
https://issues.apache.org/jira/browse/GROOVY-5113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles updated GROOVY-5113:
--------------------------------
    Description: 
{{bin\groovy -e "System.properties.each\{ k,v -> println(k + ': ' + v) \}"}}
{code}
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) }
{code}

Caused by the > character not being properly escaped somehow.

  was:
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.


> Windows -e option fails when reserved characters are used in the script
> -----------------------------------------------------------------------
>
>                 Key: GROOVY-5113
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5113
>             Project: Groovy
>          Issue Type: Bug
>          Components: command line processing
>    Affects Versions: 1.7.8, 1.8.3
>            Reporter: Rob Elsner
>            Priority: Minor
>
> {{bin\groovy -e "System.properties.each\{ k,v -> println(k + ': ' + v) \}"}}
> {code}
> 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) }
> {code}
> Caused by the > character not being properly escaped somehow.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to