Jove bug

G. Roderick Singleton gerry at syntron.UUCP
Wed May 11 15:19:44 AEST 1988


In article <4022 at killer.UUCP> elg at killer.UUCP (Eric Green) writes:
<System: AT&T 3b2, running Sys V.3
<Software: Jove 4.9, as recently posted to comp.unix.sources
<
<symptoms: will not find files in the home directory, if currently
<located in some other directory. This includes the .joverc file,
<which is a real pain.
<
<problem: The PWD environment variable is read to find out what
<the current working directory is. Unfortunately, the version of csh
<that I am using does not maintain the PWD environment variable. Since csh was
<entered in my home directory, the PWD environment variable remains as such,
<and the pr_name routine chops off the first part of the filename thinking
<we're already in that directory.  
<
<solution: find some other way of finding the current working directory, under
<Sys V with non-standard shells. Or, remove the dir stack code from Jove --
<which is likely to have rippling side effects that I shudder to think of. 
<
<Problem: How CAN I find that directory, to replace the getenv("PWD") currently
<used?  Or is it a lost cause with csh?
<

Hmm, I'm a recent convert to csh and I have a question, however dumb,
that may be pertinent to the problem.  WHere do you set your
envinronment variables, in .cshrc or .login?

Since I'm new, it took a lot of experiments before I discovered that
.cshrc is executed every time a new csh is forked and I suspect that
this is what you are missing. 

If this assumption is out to lunch, please email your corrections.  If not
I hope it helps you Eric and saves the hours needed to munge the sources.

gerry

-- 
G. Roderick Singleton, gerry@{ suncan | geac | eclectic | syntron }.UUCP
"ALL animals are created equal, BUT some animals are MORE equal than others."
George Orwell



More information about the Comp.sources.bugs mailing list