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

groovysh cannot load script with shebang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.6
    • 2.4.7
    • Groovysh
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: