Is this expected behaviour, or a bug?
Expected behaviour. Only one of -e
and a file can be supplied at any time (see below) and the extension needs to load Julia with an internal startup file.
❯ cat test.jl
println("file")
❯ julia -e 'println("cmd")' test.jl
cmd
❯ julia test.jl -e 'println("cmd")'
file
(More specifically, I want to
push!
toLOAD_PATH
in order to add development-time dependencies (which I don’t want to place in the Base environment
Consider using a normal environment for that. Generally, I’d caution against LOAD_PATH
modifications.