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

Pascal Schumacher reassigned GROOVY-7566:
-----------------------------------------

    Assignee: Pascal Schumacher

> Groovysh command arguments parser does not handle escaped blanks
> ----------------------------------------------------------------
>
>                 Key: GROOVY-7566
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7566
>             Project: Groovy
>          Issue Type: Bug
>          Components: Groovysh
>    Affects Versions: 2.4.0, 2.4.4
>            Reporter: Thibault Kruse
>            Assignee: Pascal Schumacher
>             Fix For: 2.5.0-beta-1
>
>
> To reproduce:
> {code}
> groovy:000> import org.codehaus.groovy.tools.shell.util.CommandArgumentParser 
> ===> org.codehaus.groovy.tools.shell.util.CommandArgumentParser
> groovy:000> CommandArgumentParser.parseLine('foo \\"')
> Missing closing " in foo \" -- [foo, \]
> // should single argument escaped hyphen
> groovy:000> CommandArgumentParser.parseLine('\'\\\\ \\\' bar\'')
> ===> [\ ' bar]
> // should be single (quoted) argument [\\ \' bar]
> {code}
> See https://github.com/apache/incubator-groovy/pull/92



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to