Groovy on Solaris 10
I tried installing groovy on solaris 10 today. As expected, groovy 1.5.4 installed smoothly but I encountered a problem post installation. When I tried running groovy, I got the following error!
"startGroovy: syntax error at line 219: `i=$' unexpected"
The startGroovy script has a #!/bin/sh at the top and solaris 10 has problems with the lines
i=$(i+1). There were also other lines in the script that were not compatible with the shell - like the case statement which had
case ($i) in
(0) set -- ;;
This has to be changed to
case ($i) in
0) set --;
This patch will fix these issues with solaris. However, the fix has been put back into the code base recently. I will soon be releasing a groovy package for solaris. Do watch out the blog for updates!