Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-489

Fix bin/groovy shell script

    XMLWordPrintableJSON

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

          Activity

            People

              blackdrag Jochen Theodorou
              dion@almaer.com Dion Almaer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: