(Sorry, my first reply went to Marc Lehmann personally - I'm not used to mailing lists)
> A method that works even on linux is to identify what you mean with > "working directory" This is what I am trying to achieve: I start urxvt -pe tabbed. I have one tab opened with a shell running. I do "cd /tmp" in the shell. I open another tab. I type echo $PWD in the shell running in the new tab. It prints "/tmp". Or, in other words, by "working directory of the currently opened tab" I mean: the CWD of the shell process associated with the currently active tab. > working directories are per-process, > and there is no way for urxvt to know which process is meant. Isn't the PID of the shell the cmd_pid member of the rxvt_term struct? That's what I use in the C function I posted. Maybe my email's subject was not accurate enough as I also add to the the core C code of urxvt. > That could be modified to tell urxvt about > the current wd (e.g. by setting a window property). Thank you for that, will definately try to do it through a window property, which seems like a far better way. Thanks, bye. Emil Stanchev. _______________________________________________ rxvt-unicode mailing list [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode
