You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Thibault Kruse (JIRA)" <ji...@apache.org> on 2015/08/28 13:06:45 UTC
[jira] [Created] (GROOVY-7566) Groovysh command arguments parser
does not handle escaped blanks
Thibault Kruse created GROOVY-7566:
--------------------------------------
Summary: 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
Reporter: Thibault Kruse
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)