How do I get GNU screen not to start in my home directory in OS X?

Posted by Benjamin Oakes on Super User See other posts from Super User or by Benjamin Oakes
Published on 2009-12-02T16:09:55Z Indexed on 2010/03/23 5:01 UTC
Read the original article Hit count: 743

Filed under:
|
|
|

GNU Screen (screen) behaves differently on OS X 10.5 (Leopard) and 10.6 (Snow Leopard) compared to Linux (at least Ubuntu, Red Hat, and Gentoo) and OS X 10.4 (Tiger). In 10.5 and 10.6, new screens (made with screen or ^A c) always places me in my home directory ~. In Linux and OS X Tiger, new screens have a pwd of wherever the screen was created originally.

Made up examples to illustrate what I mean:

Tiger:

$ cd ~/foo
$ pwd
/Users/ben/foo
$ screen
$ pwd
/Users/ben/foo
$ screen # or ^A c
$ pwd
/Users/ben/foo

Leopard, Snow Leopard:

$ cd ~/foo
$ pwd
/Users/ben/foo
$ screen
$ pwd
/Users/ben
$ screen # or ^A c
$ pwd
/Users/ben

How do I get Leopard and Snow Leopard to behave like Tiger used to?

© Super User or respective owner

Related posts about osx

Related posts about gnu-screen