unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to make M-X compile import my environment?
@ 2003-03-21 15:37 Roy Smith
  2003-03-21 23:56 ` Roy Smith
  0 siblings, 1 reply; 3+ messages in thread
From: Roy Smith @ 2003-03-21 15:37 UTC (permalink / raw)


I'm using XEmacs 20.4 on a Solaris box in a ClearCase build
environment.  Our "make" command is a shell alias to "clearmake -C
gnu", and that in turn relies on lots of environment variables to work
right (I have no control over this stuff).

The problem is, when I run M-X compile, the shell that's spawned to
run make doesn't inherit my environment.  It doesn't seem to read my
.cshrc file either.

Any ideas what might be going on?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to make M-X compile import my environment?
  2003-03-21 15:37 How to make M-X compile import my environment? Roy Smith
@ 2003-03-21 23:56 ` Roy Smith
  2003-03-24 16:33   ` Kevin Rodgers
  0 siblings, 1 reply; 3+ messages in thread
From: Roy Smith @ 2003-03-21 23:56 UTC (permalink / raw)


In article <b5fbj0$ois$1@panix2.panix.com>, I wrote:
> when I run M-X compile, the shell that's spawned to run make doesn't 
> inherit my environment.  It doesn't seem to read my .cshrc file 
> either.

I got it figured out.  The .cshrc file was checking to see if the shell 
emacs spawned was an interactive shell, if if not, would exit before 
setting the environment up properly.  No clue what the guy who wrote the 
.cshrc was thinking when he did this.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to make M-X compile import my environment?
  2003-03-21 23:56 ` Roy Smith
@ 2003-03-24 16:33   ` Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2003-03-24 16:33 UTC (permalink / raw)


Roy Smith wrote:

> I got it figured out.  The .cshrc file was checking to see if the shell 
> emacs spawned was an interactive shell, if if not, would exit before 
> setting the environment up properly.  No clue what the guy who wrote the 
> .cshrc was thinking when he did this.

He was following the convention that since environment variables are inherited by

subprocesses, it makes more sense to set them once (at login) rather than every 
time a new shell is started.  That also simplifies the common task of augmenting
the PATH (and LD_LIBRARY_PATH and MANPATH) without unnecessarily adding duplicates.

-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-24 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-21 15:37 How to make M-X compile import my environment? Roy Smith
2003-03-21 23:56 ` Roy Smith
2003-03-24 16:33   ` Kevin Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).