Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: screen clobbers PATH



Peter Seebach wrote:
In message <email@hidden>, David Mackler writes:

Hmmm. No screen installed by fink.

David, do you perhaps have the Fink "source /sw/bin/init.sh" startup command in your ~/.bashrc script? This non-standard placement would explain that you get the Fink PATH components when you run "screen $SHELL", because then you would get them in any shell, regardless of the environment it runs in.


The most common problem I've had with PATH getting clobbered has involved
system profile/startup scripts clobbering PATH, and the shell happening to
trigger this.

Look also at /usr/libexec/path_helper.

Thanks for guessing, but none of these explains the behavior I am seeing. The path_helper script would additionally place /usr/local/bin and /usr/X11/bin on the PATH, which I am not getting.


I also put tracers in all the shell startup scripts, and I see that the only ones that are executed are /etc/csh.cshrc and ~/.tcshrc (I have tcsh as login shell). In none of these scripts there is anything influencing PATH. I am setting my PATH in scripts run from /etc/csh.login. I even created a new account with bash as login shell, and I am seeing the exact same behavior; this time it is only ~/.bashrc that is executed.

It is definitely /usr/bin/screen that is clobbering PATH.

I can't believe I am the only one seeing this. I have seen this on every machine running Leopard I have looked at and on every account I have created or could get my fingers on.

--
Martin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: screen clobbers PATH (From: email@hidden (Peter Seebach))



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.