[comp.emacs] probably csh

merlyn@intelob.intel.com (Randal L. Schwartz @ Stonehenge) (04/29/89)

In article <MNP.89Apr27211059@pitman.cs.brown.edu>, mnp@cs writes:
| Thanks very much for the effort, but that doesn't work.  Perhaps it is
| because i do not have MAINTAIN_ENVIRONMENT defined, but i had written
| a routine just like the one you posted before i posted my original
| article.  Change process-environment by hand does not help.  All
| subshells started after the process-environment variable is set DO NOT
| reflect the changed environment.  To see this do:
| 
| 	M-x edit-options
| 	Change process-environment to whatever you like,
| 	M-x shell
| 	shell prompt -> printenv
| 
| the environment printed out in the subshell is entirely wrong.  
| looks like a bug in gnuemacs dist-18.53.  
| 
| Please tell me i'm wrong.

Then, I will take a wild guess, and say the following:

You probably use the c-shell (blech) and "set path" or "setenv PATH"
in your .cshrc (which is the wrong place to set it).  Move your
path-setter to .login (which messes up rsh's and rlogin's, but that's
a different problem, and can be solved with some weird hacks).  Then,
my code should work.  To test my theory, set some other variable (like
'FOO') to something (like 'BAR'), and see if 'printenv' shows it.  (It
should.  If not, yell at me...)  I don't think it's a bug in 18.53, or
I'd have problems setting the environment too (which I don't).

Me?  I use the ksh (but not ksh88... durn...).

Just another Elisp hacker (for a few more weeks :-[),
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095===\
{ on contract to BiiN, Hillsboro, Oregon, USA, until 30 May 1989     }
{ <merlyn@intelob.intel.com> ...!uunet!tektronix!biin!merlyn         }
{ or try <merlyn@agora.hf.intel.com> after 30 May 1989               }
\=Cute quote: "Welcome to Oregon... home of the California Raisins!"=/