groovy

startGroovy script has issue on cygwin

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker 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 :
    2

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

Activity

Hide
Lei Chen added a comment -

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

Show
Lei Chen added a comment - 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
Hide
Paul King added a comment -

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.

Show
Paul King added a comment - 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.
Hide
Paul King added a comment -

No further feedback, assuming fixed

Show
Paul King added a comment - No further feedback, assuming fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: