Yes [1] I've been bitten by this before as well; it's unfortunate. Is there 
perhaps some way to change some command line arguments after starting Julia?

[1] 
http://unix.stackexchange.com/questions/14887/the-way-to-use-usr-bin-env-sed-f-in-shebang/14892#14892

On Thursday, May 19, 2016 at 2:35:27 PM UTC-4, Yichao Yu wrote:
>
>
> On May 19, 2016 1:54 PM, "Adrian Salceanu" <[email protected] 
> <javascript:>> wrote:
> >
> > OK, I figured out what causes the problem. 
> >
> > It seems that on linux it does not like the --color=yes 
> >
> > Removed that and it works as expected. 
>
> Cmdline parseing for shebang is wierd. I believe linux only split at the 
> first space
>
> >
> > Cheers! 
> >
> >
> > joi, 19 mai 2016, 19:48:04 UTC+2, Adrian Salceanu a scris:
> >>
> >> Hi, 
> >>
> >> There seems to be a problem with executing .jl scripts on Ubuntu 16.04 
> x64 
> >>
> >> Take this simple program in exec_text.jl
> >>
> >> #!/usr/bin/env julia --color=yes
> >> println("all good!")
> >>
> >>
> >> On Mac OS: 
> >> $ ./exec_test.jl
> >> all good!
> >>
> >>
> >> On Ubuntu it just hangs
> >> $ ./exec_test.jl
> >>
> >> [=> never returns, does nothing]
> >>
> >> This works as expected: 
> >> $ julia exec_test.jl
> >> all good!
> >>
> >> But this is not an acceptable solution as I need to execute my program 
> in order to pass command line args to it. Otherwise julia would just gobble 
> up the command line args intended for my script. 
> >>
> >> Thanks,
> >> Adrian
>

Reply via email to