You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/03/22 02:26:25 UTC
[jira] [Commented] (GROOVY-7777) groovysh cannot load script with
shebang
[ https://issues.apache.org/jira/browse/GROOVY-7777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15205583#comment-15205583 ]
ASF GitHub Bot commented on GROOVY-7777:
----------------------------------------
GitHub user jwagenleitner opened a pull request:
https://github.com/apache/groovy/pull/297
GROOVY-7777 - groovysh cannot load script with shebang
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jwagenleitner/groovy GROOVY-7777
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/groovy/pull/297.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #297
----
commit 13cc9ff55ca334693774ae7ba531b2276ee693cc
Author: John Wagenleitner <jw...@apache.org>
Date: 2016-03-22T01:22:53Z
GROOVY-7777 - groovysh cannot load script with shebang
----
> 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)