Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.6.1, 1.6.2, 1.6.3
-
Fix Version/s: None
-
Component/s: command line processing
-
Labels:None
-
Environment:Linux (RHEL 5, Fedora Core 5)
-
Number of attachments :
Description
Getting an error in groovy one-liners:
$ groovy -e 'println "Hello, World!"' org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, script_from_command_line: 1: unexpected char: 0xFFFF @ line 1, column 23. 1 error
Putting the same thing in a file works fine. It doesn't happen for the following:
$ groovy -e 'println '\''Hello, World!'\' $ groovy -e 'println "Hello, World!";' $ groovy -e 'println "";' $ groovy -e '' $ groovy -e 'println 1' $ groovy -e 'println System.properties'
When you use a zero-length string literal, you get a slightly different error:
$ groovy -e 'println ""' org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, script_from_command_line: 1: unexpected char: '"' @ line 1, column 9. 1 error
Activity
Guillaume Laforge
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.7-beta-1 [ 14014 ] | |
| Fix Version/s | 1.6.4 [ 15291 ] |
Guillaume Laforge
made changes -
| Fix Version/s | 1.6.4 [ 15291 ] | |
| Fix Version/s | 1.6.x [ 15537 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.7-beta-1 [ 14014 ] | |
| Fix Version/s | 1.7-beta-x [ 15538 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.6.x [ 15537 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.8.x [ 15750 ] | |
| Fix Version/s | 2.x [ 17013 ] | |
| Fix Version/s | 1.7.x [ 15538 ] |
Pascal Schumacher
made changes -
| Fix Version/s | 1.8.x [ 15750 ] | |
| Fix Version/s | 2.x [ 17013 ] | |
| Component/s | command line processing [ 10445 ] |