Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.0-beta-6
-
Component/s: None
-
Labels:None
-
Environment:Mac OS X, CVS HEAD
-
Number of attachments :
Description
Typing just "groovy" on the command line with no arguments spews the following error messages:
/usr/local/projects/Java/groovy/bin/groovy: line 45: [: =: unary operator expected
/usr/local/projects/Java/groovy/bin/groovy: line 45: [: =: unary operator expected
Usage: Groovy groovyScript [arguments]
The script should not barf on line 45 ![]()
Issue Links
- is duplicated by
-
GROOVY-489
Fix bin/groovy shell script
-
if [ $1 = "-cp" ] || [ $1 = "-classpath" ]; then
might be better as
if [ "x$1" = "x-cp" ] || [ "x$1" = "x-classpath" ]; then