Consider the following script:
# this is correct: println(@__DIR__) # but this is not, it's just the cwd: run(`echo $(@__DIR__)`) # but this works: foo = @__DIR__ run(`echo $foo`)
/home/samuela/dev/research/julia/odecontrol/difftaichi/electric /home/samuela/dev/research/julia/odecontrol /home/samuela/dev/research/julia/odecontrol/difftaichi/electric
which defies all logic to me.
@__DIR__ have a different value when used in backtick notation?