• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: screen clobbers PATH
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: screen clobbers PATH


  • Subject: Re: screen clobbers PATH
  • From: Juan Manuel Palacios <email@hidden>
  • Date: Wed, 30 Jan 2008 21:37:41 -0430


On Jan 30, 2008, at 4:59 PM, Martin Costabel wrote:

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.


I don't have a solution to the problem, but at least a few words of comfort telling you that I'm also experiencing the exact same problem: Tiger's screen, OK; MacPorts' screen, OK; Leopard's screen, no PATH. I have to supply the full path to whatever program I want to run under Leopard's screen, otherwise I get not found errors.

Lastly, I've not looked through the problem as extensively as you have, but my setup is rather straight forward with some settings in / etc/profile and some in ~/.profile, pretty standard situation (no path_helper(8) tweaking anything). I don't see what could be hampering screen's environment in my shell configuration, so I'm also guessing it must be a problem with screen itself.

	Regards,...


-jmpp




--
Martin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: screen clobbers PATH
      • From: Martin Costabel <email@hidden>
References: 
 >Re: screen clobbers PATH (From: email@hidden (Peter Seebach))
 >Re: screen clobbers PATH (From: Martin Costabel <email@hidden>)

  • Prev by Date: Re: screen clobbers PATH
  • Next by Date: Re: Cancel Sleep
  • Previous by thread: Re: screen clobbers PATH
  • Next by thread: Re: screen clobbers PATH
  • Index(es):
    • Date
    • Thread