Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Any unix shell environment
Description
The shell script is broken.
E.g. if you run groovy without an argument you get shell errors.
The fix is to change:
if [ $1 = "-cp" ] || [ $1 = "-classpath" ]; then
to (add the quotes)
if [ "$1" = "-cp" ] || [ "$1" = "-classpath" ]; then
Then can also change:
if [ "x$GROOVY_HOME" = "x" ]; then
to:
if [ "$GROOVY_HOME" = "" ]; then
(also used in other places)
Dion
ps. the weird thing is that most of the groovy guys are on PowerBooks. How come you aren't running into this?
Attachments
Issue Links
- duplicates
-
GROOVY-413 groovy shell script error messages when no args
- Closed