On 1/18/11 5:25 PM, Nicholas Marriott wrote:
> On Tue, Jan 18, 2011 at 04:42:00PM +0000, Julio Merino wrote:
>> On 1/18/11 4:28 PM, Nicholas Marriott wrote:
>>> suppose could update s->cwd on attach but it doesn't do much good if you
>>> switch your client plus if you attach somewhere else then suddenly your
>>> cwd is gone
>>>
>>> better might be to use the cmd client cwd, eg try this (untested)
>>
>> Doesn't seem to work.  Any new windows get cwd = /
>
> ok i'll have to try this
>
>>
>> That said, what is 's'?  (Sorry, haven't looked at the code yet.)
>> Is it a per-session data structure?  In that case, it seems you
>> could gather the value of "cwd" when the session is created and
>> leave it unmodified for the rest of the session[*].  Then, when a
>> child window is created within the session, reuse the s->cwd of the
>> session.
>
> yes we already do this

Hmm, then the use case I described in the original mail should be 
working, shouldn't it?

... oh... wait... the machine I'm having trouble with has tmux 1.1. 
Tried with tmux 1.4 somewhere else and indeed things seem to work.  Will 
update the first machine and try again.

Sorry for the noise.


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to