screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zsh under leopard, screen not executing zprofile, wiping PATH


From: Stephane Chazelas
Subject: Re: zsh under leopard, screen not executing zprofile, wiping PATH
Date: Thu, 20 Nov 2008 16:18:02 +0000
User-agent: Mutt/1.5.16 (2007-09-19)

On Thu, Nov 20, 2008 at 11:51:31PM +0800, Aaron Davies wrote:
> i have an old powerbook g4 which i recently upgraded (in place, not
> archive-and-install) from tiger to leopard. now, when i start screen,
> zsh apparently resets the PATH to the bare basic four directories
> (overriding the heavily customized and exported PATH from the parent
> shell, and then fails to read my .zprofile. it does read my .zshrc
> tho, as my aliases are all present. this worked fine in tiger, so
> presumably apple's done something screwy with screen and/or zsh in
> leopard. anyone have any clues?
[...]

Only login zsh read the .zprofile, so zsh shouldn't read
zprofile as screen doesn't call shells as login shells (with the
first character of their argv[0] being "-").

The environment shouldn't be reset though. Have you checked
~/.zshenv and /etc/zshenv? You could try adding a "set -x" to
your ~/.zshenv, or just do a <Ctrl-A>:zsh -x do see what's going
on.

-- 
Stéphane




reply via email to

[Prev in Thread] Current Thread [Next in Thread]