Re: [PATCH] New option to get cwd of new windows from active window

2011-12-01 Thread Romain Francoise
I figured this would be controversial... First some context: this was originally filed a wishlist request in the Debian BTS. I replied that the only way to keep the cwd is to use the client, and that achieving this from keys would involve non-portable ways of getting the working directory and so

Re: [PATCH] New option to get cwd of new windows from active window

2011-12-01 Thread Nicholas Marriott
Yeah it has to work on OpenBSD and preferably FreeBSD too.I think you can probably use sysctl KERN_FILE, KERN_FILE_BYPID and look for KERN_FILE_CDIR in fd_fd on OpenBSD at least. I don't think we need a new option, why not make default-path default to and override the automatic inheriting if