On Friday, August 19, 2016 at 8:41:51 AM UTC-4, Pigskin Ablanket wrote: > > Ok - This makes sense to me.......but: > > When I proceeded with julia>;pwd this is the response I got: Error: could > not spawn `pwd`: no such file or directory (ENOENT) in _jl_spawn at > process.jl:262 >
Typing ; command in the julia REPL (the julia> prompt) executes a command in the operating system's shell. pwd is a command in the unix shell, so it won't work in Windows where the shell is the DOS shell (cmd.exe), which is the reason for your error. Similarly for run(`pwd`). If you want to write portable code, you should generally avoid the OS shell entirely (and in any case the semicolon trick only works in the REPL). For example, you can get the current directory via the pwd() function in Julia.
