#!/usr/bin/env julia -F

375 views
Skip to first unread message

David van Leeuwen

unread,
Nov 15, 2013, 6:55:47 AM11/15/13
to julia...@googlegroups.com
Hello, 

In my admittedly questionable efforts to make everything in life a unix script, I use the sh-bang line

#!/usr/bin/env julia -F

which worked for me on the mac version of /usr/bin/env.  However, running the same in a bigger linux environment, I stumble upon its different /usr/bin/env behaviour

/usr/bin/env: julia -F: No such file or directory

so obviously using an option to julia is not safe across platforms for "env".  I can solve this particular little problem by making a script called "julia -F" in the search environment on the linux system.  

I need the "-F" switch because that is the way I set load paths and the like.  Is this considered bad practice?  

Cheers, 

---david

Brendan O'Connor

unread,
Nov 15, 2013, 11:58:22 AM11/15/13
to julia...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages