Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.0, 2.4.4
-
None
Description
To reproduce:
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]