You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/09/01 20:25:46 UTC
[jira] [Updated] (GROOVY-7566) Groovysh command arguments parser
does not handle escaped blanks
[ https://issues.apache.org/jira/browse/GROOVY-7566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher updated GROOVY-7566:
--------------------------------------
Affects Version/s: 2.4.0
2.4.4
> 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
> 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)