On Sat, Mar 26, 2016 at 11:50 AM, Erik Schnetter <[email protected]> wrote:
> I'm using Julia on a system where there is no cmake installed. I
> installed one on my own, and I'm manually changing PATH before
> starting Julia.
>
> I find that PATH is reset when Julia executes a shell command, e.g.
> via ";bash -c 'echo $PATH'".
>
> This also means that all packages that use cmake to build a library will fail.
>
> Can you point me to where PATH is reset? I assume it's a flag passed
> to a routine that will ultimately call fork or exec?

I don't see this effect

```
julia> run(`bash -c 'echo $PATH'`)
/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/yuyichao/bin

julia> ENV["PATH"]
"/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/cuda/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/yuyichao/bin"
```

You can check `run(`env`)` to see if your .bashrc or some similar init
files are overwriting it.

>
> -erik
>
> --
> Erik Schnetter <[email protected]>
> http://www.perimeterinstitute.ca/personal/eschnetter/

Reply via email to