The uv spawn API doesn't go through bash so it won't handle bash builtins. You can run some scripts via bash -c, but that usually won't persist any environment changes after bash exits. If this is a Julia script, can't you include it?
On Saturday, July 11, 2015 at 10:56:49 AM UTC-7, Jared Crean wrote: > > Hello, > I am trying to run a shell command through julia but am getting > errors. For example > > > julia> run(`source ./use_petsc.jl`) > ERROR: could not spawn `source ./use_petsc.jl`: no such file or directory > (ENOENT) > in _jl_spawn at process.jl:225 > in spawn at process.jl:355 > in spawn at process.jl:396 > in run at ./process.jl:485 > > I tried breaking up the command into two interpolations as described here > : > http://stackoverflow.com/questions/24682182/julia-unable-to-run-command-with-arguments-through-string-variable > > , but that didn't work either. > > I know there are other ways of setting environmental variables, but it is > important for the project I am working on to use shell scripts. > > Jared Crean >
