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

groovysh cannot load script with shebang

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.6
    • Fix Version/s: 2.4.7
    • Component/s: Groovysh
    • Labels:
      None

      Description

      The following file runs nicely when executing $ ./shebang.groovy :

      shebang.groovy
      #!/usr/bin/env groovy
      println "Hello from the Shebang"
      

      But, loading that file into groovysh results in:
      $ groovysh shebang.groovy
      groovysh_parse: 2: unexpected char: '#' @ line 2, column 1.

      tested under Ubuntu14.04 with Groovy 2.4.6

        Attachments

          Activity

            People

            • Assignee:
              jwagenleitner John Wagenleitner
              Reporter:
              plgruener paul
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: