Native shebang: Difference between revisions

julia example
(julia example)
Line 615:
<lang sh>$ ./echo.foo --arg x "Hello, world!"
Hello, world!</lang>
 
 
=={{header|Julia}}==
From https://discourse.julialang.org/t/useful-julia-script-tips-workaround-shebang/15584
<lang julia>
#!/bin/bash
# -*- mode: julia -*-
#=
exec julia --color=yes --startup-file=no "${BASH_SOURCE[0]}" "$@"
=#
# Put the Julia code below this line. It will be compiled and run.
 
Base.banner()
 
</lang>{{out}}
<pre>
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.1.1 (2019-05-16)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
</pre>
 
 
4,102

edits