On Tue, Dec 06, 2011 at 06:05:30PM +0100, Matthias Lederhofer wrote: > Nicholas Marriott <nicholas.marri...@gmail.com> wrote: > > If you start PWD with it already in the environment, it is marked as > > exported - this is the same as any other variable: > > Ah, ok. Anyway it shows that ksh uses $PWD as any other shell, even > though it doesn't export it by default. > > > For your use, you want to be able to add * to > > update-environment. Particularly if that included PWD too. > > > > * should match anything, -* should remove anything in the new but not > > global environment add an unset (-FOO) for anything that is in the > > global environment but not the new. > > Ok, that sounds reasonable. So you're suggesting to extend > update-environment to include a filter (i.e. removing elements from > the environment for a session). But there would also be a different > list of environment variables to be updated for new sessions than for > attaching to an existing session.
Well, I don't know if we need separate lists, but I suppose it couldn't hurt. > > For the $PWD part: you'd suggest to use $PWD instead of all the cwd > member? This would also mean that windows have their own environment > as the PWD should not be changed. What about the default-path option? > Imo it is just redundant to the global PWD value or the session PWD > value. Well, this will interact with the automatic PWD-from-current-window stuff that is going in soon. I think we will need default-path as an override-everything button. But carrying around all the cwd[] arrays is a bit pointless, it can be part of the environment then a) update-environment can apply to it b) we should change the respawn stuff so the pane has an entire copy of it's creation environment. > > Do you agree that the value of $PWD should be copied from the > surrounding environment, if it points to the correct directory? Yes I think that is fine. ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users