Re: xterm won't use my shell?
Re: xterm won't use my shell?
- Subject: Re: xterm won't use my shell?
- From: Doug McNutt <email@hidden>
- Date: Fri, 17 Jan 2003 10:37:23 -0700
At 16:26 -0800 1/16/03, feorlen wrote:
>Also, I noticed that something has put /usr/X11R6/bin in my path twice.
This is the problem with setting $PATH in a *rc file rather than in a *login file. But the logins tend never to get executed by things like BBEdit , Project Builder, and AppleScript.
>Someone mentioned environment.plist. I don't have one yet, if I create this will that get used instead?
environment.plist is read at login-to-OS-neXt time and not at login-to-a-Terminal-session time. /etc/csh.login overwrites whatever path you have set in the plist. I donno about bash.
>If I don't know where the environment is coming from now, I'd like to know that if I do this then it will actually use it.
I have taken to editing my own and the Apple-provided login and rc files to include lines like:
date >> $HOME/logs/shel_log
echo $PATH >> $HOME/logs/shel_log
echo $SHLVL >> $HOME/logs/shel_log
echo "leaving script xxx" >> $HOME/logs/shel_log
It doesn't change Apple's idea about how things ought to be but it sure opens your eyes about all of the strange things that are happening. For instance, AppleScript's "do shell script" enters at $SHLVL = 2.
Next thing on my list is to do the same for .xinitrc and its cousin xinitrc buried in /usr/X11R6/etc/. . .
--
Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.