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)