• 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: Martin Costabel <email@hidden>
  • Date: Wed, 30 Jan 2008 17:24:16 +0100

David Mackler wrote:

From: Martin Costabel <email@hidden>
[]
On Leopard, in the shell started by /usr/bin/screen, the PATH variable is set to

   /usr/bin:/bin:/usr/sbin:/sbin

All other environment variables, for example MANPATH or CLASSPATH, are copied from the environment of the shell from which screen is started. Only PATH is crippled to this minimalist value.

This did not happen in Tiger, and it does not happen with other builds of screen, for example from Fink.

Does anyone have an explanation for this annoying behavior, or, more importantly, a fix?


No fix, but neither do I see the problem:
(from my screen session)
[david@FourSpeed:~ 2006]$ echo $PATH
/sw/bin:/sw/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin


Are you sure this is /usr/bin/screen and not /sw/bin/screen?

As I mentioned, I don't see the problem with Fink's screen, although it is the same version as Apple's. It is also new in Leopard, it was not present in Tiger.

What do you have in your .screenrc? How are you starting screen?

I don't have any ~/.screenrc, never had. Usually I use 'screen -ls' to recall where I am and then 'screen -R'. I could use 'screen tcsh -l' and the right PATH would come back, but I cannot do this with 'screen -R'.


Here is my .screenrc:
[david@FourSpeed:~ 2007]$ cat .screenrc # Turn off the startup message.
startup_message off
# increase default scrollback buffer and use UTF-8
defscrollback 1000
defutf8 on
# display activity message by default
#defmonitor on
# Do not use xterms alternate window buffer (won't add lines to scrollback bfr)
#termcapinfo xterm|xterms|xs|xterm-color ti=\E7\E[?47l
# Set the caption to the active windows
caption always "%l: %-Lw%{= BW}P>%n%f* %t%{-}%+Lw%<"
# New screens for various fixed processes
screen -t console 0 tail -n 30 -F /var/log/system.log
screen -t links 1 /sw/bin/links $HOME/.links/startpage.html
# Create a window and use the default shell
screen $SHELL
# Display the first window
select 0

Using your .screenrc (minus the "links" line), I still see the same problem.

--
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
References: 
 >Re: screen clobbers PATH (From: David Mackler <email@hidden>)

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