You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "paul (JIRA)" <ji...@apache.org> on 2016/03/03 17:31:18 UTC

[jira] [Created] (GROOVY-7777) groovysh cannot load script with shebang

paul created GROOVY-7777:
----------------------------

             Summary: groovysh cannot load script with shebang
                 Key: GROOVY-7777
                 URL: https://issues.apache.org/jira/browse/GROOVY-7777
             Project: Groovy
          Issue Type: Bug
            Reporter: paul


The following file runs nicely when executing {{$ ./shebang.groovy}} :
{code:title=shebang.groovy|borderStyle=solid}
#!/usr/bin/env groovy
println "Hello from the Shebang"
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)