Re: new window with same pwd

Stephane Chazelas <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
2011-08-09 13:52:37 -0700, Neuberger, Sheldon:
> Hello,
> 
> Is there a way to open a new window with the same pwd as the current window?
[...]

By window pwd, I suppose you mean the current working directory
of the process started in the current window. (from the
pwd command standing for print working directory).

All you need to do is run the "screen" command with $STY
refering to the screen session in the same directory as the one
you want.

If the application in the current window is a shell, running
"screen" from there would usually do it.

It may not work if the STY variable has been unset or if the
process is running as a different username.

-- 
Stephane
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.