Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.0
-
Fix Version/s: 1.1-beta-2
-
Component/s: None
-
Labels:None
-
Environment:Win XP SP2
CYGWIN_NT-5.1 1.5.18(0.132/4/2)
-
Testcase included:yes
-
Number of attachments :
Description
When I tried to run my first groovy script from command line within Cygwin, I get the following error:
$groovy FileHash.groovy test.txt
/opt/groovy-1.0/bin/startGroovy: line 212: count+=1: command not found
/opt/groovy-1.0/bin/startGroovy: line 212: count+=1: command not found
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed,
Luckily I was able to figure out why and I have fixed it. Attached is the patch
1.1-BETA-1 has the same problem. Here is more simpler test case:
$groovy -v
/opt/groovy-1.1-BETA-1/bin/startGroovy: line 212: count+=1: command not found
Groovy Version: 1.1-BETA-1 JVM: 1.6.0_01-b06