and the third (in R) is in 3.1.2 ... On Oct 31, 2014, at 12:36 PM, Berend Hasselman <[email protected]> wrote:
> > On 25-10-2014, at 20:25, Kevin Ushey <[email protected]> wrote: > >> I've noticed that the PATH is actually duplicated in e.g. R.app (when >> launched from the dock). >> >>> env <- Sys.getenv() >>> as.list(env[names(env) == "PATH"]) >> $PATH >> [1] "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" >> >> $PATH >> [1] "/usr/bin:/bin:/usr/sbin:/sbin" >> >> It is the second of these that `system` sees: >> >>> system("echo $PATH") >> /usr/bin:/bin:/usr/sbin:/sbin >> >> but if we explicitly unset and reset the PATH, we get the (expected?) PATH >> back: >> >>> Sys.unsetenv("PATH") >>> Sys.setenv(PATH = "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin") >>> system("echo $PATH") >> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin >> >> There are a number of other environment variables that are duplicated >> as well, e.g. >> >>> names(env[duplicated(names(env))]) >> [1] "Apple_PubSub_Socket_Render" "DISPLAY" >> "HOME" >> [4] "LOGNAME" "PATH" >> "SHELL" >> [7] "SSH_AUTH_SOCK" "TMPDIR" “USER" >> >> No idea if this is expected or meaningful, but I thought I would post >> this for posterity. >> > > See this discussion of the issue: > > http://tex.stackexchange.com/questions/208181/why-did-my-tex-related-gui-program-stop-working-in-mac-os-x-yosemite > > Two solutions are offered for the problem: one by Maxwell for C and one by > Cheng for C++. > > > Berend Hasselman > > _______________________________________________ > R-SIG-Mac mailing list > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-mac > _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
