Issue Details (XML | Word | Printable)

Key: GROOVY-1928
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Paul King
Reporter: Lei Chen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

startGroovy script has issue on cygwin

Created: 31/May/07 09:50 PM   Updated: 26/Sep/07 08:24 PM
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.1-beta-2

Time Tracking:
Not Specified

File Attachments: 1. File FileHash.groovy (0.7 kB)
2. Text File startGroovy.patch (2 kB)

Environment: Win XP SP2
CYGWIN_NT-5.1 1.5.18(0.132/4/2)

Testcase included: yes


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Lei Chen added a comment - 01/Jun/07 03:01 PM
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


Paul King added a comment - 15/Jun/07 08:11 PM
On Win XP SP2, CYGWIN_NT-5.1 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin
this change didn't seem necessary so I imagine this must be needed for older cygwin installations. It didn't break the newer ones or affect Ubuntu under Linux so including anyway.

Paul King added a comment - 26/Sep/07 08:24 PM
No further feedback, assuming fixed