jastrachan | 4 Mar 08:47 2005
Picon

Re: Bug (or feature) with beta10 and unix ("#!" first line)

Just to be clear - is this issue with beta-10 when using the new JSR 
parser; or when using the classic parser? (i.e. did you explicitly 
enable the JSR parser?)

On 3 Mar 2005, at 19:17, Maurice Diamantini (free) wrote:
> Hello groovy users,
>
> I recently tried the beta10 of groovy.
>
> My (alpha ;-) application java (jorlab) can be seen as a shell script.
> As such, it is also a unix executable, which is able to receive as
> argument a file to be interpreted.
> (see it as a big interpreter which know about tcl, groovy and other
> java libraries).
>
> So I used to write some final client script (e.g. test.gv) as this :
>
>   #!/usr/bin/env jorlab             <= !!!!! BUG with groovy-beta10
>
>   import jorlab.graph.StdGraph
>   import jorlab.util.V
>   import choco.Problem
>   import choco.integer.IntVar
>   ...
>
> The first line "#!/path/to/... " is no more allowed
> by groovy-beta10.
>
> I know I can lauch the file "test.gv" by:
>
>    jorlab  test.gv
>
> instead of the standard unix way:
>
>    ./test.gv
>
> Is this a bug or a feature??
> (for me it's a bug! )
>
> -- Maurice Diamantini
>
>
>
>

James
-------
http://radio.weblogs.com/0112098/


Gmane