Gnu Screen and 10.5

So, does anyone else have problems with Gnu Screen and OSX 10.5? If I use the box-shipped version, my PATH is completely ignored, and it doesn't understand deflogin or login in my .screenrc file.

If I use the macports version, I get UTMP problems and unless I manually create /var/run/utmp, eventually /etc/sudoers and passwd gets updated, and UID 501 is no longer in the passwd file!

iMac, Mac OS X (10.5.3)

Posted on Jun 22, 2008 12:33 AM

Reply
5 replies

Jun 24, 2008 10:10 AM in response to James E. Bailey

That's actually not screen's fault.

When bash starts, it will read either .profile_bash or .bashrc but not both, depending whether it is a shell process or subprocess.

On X-window based systems, one of these (I can never remember which) gets read when the root window starts, and then the other gets read when every sub-process starts. On OS X this approach breaks down.

There is a slightly different bug I have been seeing, and I think it is due to multi-threading. Basically the screen session starts before the $PATH gets entries like /sw/bin or /opt/local/bin set. I never figured out how, but my hackish workaround is simply to start screen and then invoke the process I want, rather than to do it all in one command. (This gets annoying if you are writing shell scripts that invoke screen).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Gnu Screen and 10.5

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.