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

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

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

Pascal Schumacher updated GROOVY-7777:
--------------------------------------
    Component/s: Groovysh

> 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
>
> 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)