On Mon, Mar 31, 2008 at 6:29 PM, Jonatan Liljedahl <[EMAIL PROTECTED]> wrote: > > The path will be inherited from the parent shell, of course. That may > > not be zsh, though, so you're back to relying on whatever sh does. > > Does it matter? If you're logged in you will (should) have the > environment variables there...
If you trust the parent environment, yeah, but a) you should never trust anyone, least of all yourself and b) trying to track where all the environment stuff etc. should be set in a stack of shells is too complicated compared to one easy step ensuring that whenever you are typing in a shell, it has the environment you expect. > Regardless of what shell one has in their slim login command, I still > wonders: shouldn't the default gobo settings make zsh --login import the > Environent cache and other important env vars? > > I still don't get the reason why env stuff shouldn't be in zprofile, > since it seems to work in all cases. (It *is* read by interactive shells > too, as promised in the zsh manpages) No, it is not. When launching zsh (for interactive usage), if your login shell is bash (or tcsh, or whatever), or you don't use a login shell (some display manager straight to X), or you got rid of login entirely (hey, it's your home desktop, who needs passwords?), or you're telnetting in, or any number of other situations, zprofile is never sourced. zshrc always is. Nick _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel