From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9ee5a9ec22c47fcf,start X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,9ee5a9ec22c47fcf,start X-Google-Attributes: gidf678f,public From: steveo@world.std.com (Steven W Orr) Subject: Problem with dxsession environment. Date: 1997/04/11 Message-ID: <3civ1ta8qu.fsf@world.std.com>#1/1 X-Deja-AN: 232321850 Sender: steveo@world.std.com Organization: SysLang, Inc. Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 I am running OSF1-3.2/Alpha. My login shell is bash and I'm running emacs-19.34. I have a proper setup for bash; i.e. a .bashrc and a .bash_profile . My PATH variable has ~/bin close to the beginning. My problem is that when emacs is started, it starts with the PATH variable as initially defined by /etc/profile. The point being that I do not get the benefit of the environment variables that I'm supposed to be getting from my bash init files. Normally this is not a problem. Recently though I realized that emacs was executing something from /usr/local/bin, when I had a newer version of the desired utility in ~/bin. (/usr/local/bin was set up in /etc/profile) I looked, and sure enough, (getenv "PATH") was returning only what was spec'd in /etc/profile. Can someone tell me what the proper sequence is and/or what it's supposed to be? Is this a bug? Is there a workaround? Right now I'm dealing with it via (setenv "PATH" (concat (getenv "HOME") "/bin:" (getenv "PATH"))) in my .emacs, but this is obviously fragile. What might make sense would be for xdm to do an exec bash dxsession instead of dxsession. Does this make sense? Please email. Thanks in advance. -- ----------Time flies like the wind. Fruit flies like a banana.---------------- --------Stranger things have happened but none stranger than this.------------- Steven W. Orr steveo@world.std.com ---------------"Listen to me! We are all individuals."-------------------------