[ 
https://issues.apache.org/jira/browse/GROOVY-7777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Wagenleitner resolved GROOVY-7777.
---------------------------------------
       Resolution: Fixed
         Assignee: John Wagenleitner
    Fix Version/s: 2.4.7

Thanks for reporting the issue.

> groovysh cannot load script with shebang
> ----------------------------------------
>
>                 Key: GROOVY-7777
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7777
>             Project: Groovy
>          Issue Type: Bug
>          Components: Groovysh
>    Affects Versions: 2.4.6
>            Reporter: paul
>            Assignee: John Wagenleitner
>             Fix For: 2.4.7
>
>
> 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)

Reply via email to