Why doesn't compile command set path from login shell

Larry Evans <[email protected]> Sat, 27 May 2006 05:17:41 -0500
Newsgroups gmane.emacs.xemacs.general
Message-ID <[email protected]>
 From Xemacs, when the `Shell command` from tools menu is used,
the path is not what's produced by my login shell script,
.bash_profile.  OTOH, when the `Shell` command from the
tools menu is invoked, I get an e-shell in which:

   echo $PATH

returns the correct value.

This is also a problem with the `compile` command from
tools menu.

I can't find anything in the cusomization to set this.
When using `emacs`, it works correctly (although, of course,
there's no e-shell).  The help gotten when searching the
web for `xemacs customization` was no help :)

How can I customize xemacs so the `Shell command` and `compile`
under tools get the same path produced by my .bash_profile?

TIA.