From Kurt.Hornik@ci.tuwien.ac.at  Thu Dec 16 18:05:20 1999
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Thu, 16 Dec 1999 19:05:20 +0100 (CET)
Subject: R-0.90.1 buglet in R shell (PR#375)
In-Reply-To: <199912160120.CAA10945@pubhealth.ku.dk>
References: <199912160120.CAA10945@pubhealth.ku.dk>
Message-ID: <14425.10720.910633.666958@aragorn.ci.tuwien.ac.at>

>>>>> William Venables writes:

> I recently took "." off my PATH for security reasons and now find
> that R does not work in my home directory where the .Renviron
> file resides.

> The fix is simple.  In the R shell startup section replace
> ". .Renviron" by ". ./.Renviron".  The relevant section is:

> # Startup
> if ${USE_R_ENVIRON}; then # use the one in current dir, or default
>   if [ -r .Renviron ]
>   then . ./.Renviron      # <<-- change
>   else [ -r ${R_ENVIRON} ] && . ${R_ENVIRON}
>   fi
> fi

Could easily be changed, but I'd like to understand it first.  I cannot
reproduce the problem.  I never have `.' in my PATH and when I do

	cat > foo
	echo I am here
	CTRL-D
	. foo

I get "I am here".

Of course, this happens on Debian GNU/Linux.  Is this a system-specific
problem or feature?

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


R-0.90.1 buglet in R shell (PR#375)
Kurt Hornik