[R-SIG-Mac] Finding "bash" and "mv" on my hard drive?

Bob Rudis bob @end|ng |rom rud@|@
Sat Jan 18 00:19:38 CET 2020

R does not ship bash or bin with the program distribution on macOS. It
uses the ones that come along for the ride with the system (which will
be interesting when Apple removes bash completely in 10.16).

If you've used MacPorts or Homebrew, you may have installed version of
those shells/tools there which R is picking up.


    sapply(c("bash", "mv"), Sys.which)

should tell you where R is picking up those binaries.


On Fri, Jan 17, 2020 at 6:01 PM Spencer Graves
<spencer.graves using prodsyse.com> wrote:
> Hello:
>        How can I find the version of "bash" and "mv" that are used by "R
> CMD check" under macOS 10.15.2 Catalina?
>        I ask, because my "Bitdefender for Mac" has been interrupting "R
> CMD check" for a couple of years now, saying, "Bitdefender Safe Files
> blocked a new process, bash, from accessing your protected files."  Each
> time it happens, Bitdefender allows me to tell it to "Remember this
> action:  For 5 minutes" or "For this time only" or to "Keep blocking".
> Their "Safe Files" feature allows me to give access to certain
> applications.  I've already "allowed" 36 different applications using
> that feature, including "/bin/bash", "/bin/mv",
> "/Library/Frameworks/R.framework/Versions/3.6/Resources/exec/R", and two
> different versions of "git".  I'm not sure, but I believe that "R CMD
> check" uses versions of "bash" and "mv" different from "/bin/bash" and
> "/bin/mv".
>        Thanks,
>        Spencer Graves
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

More information about the R-SIG-Mac mailing list