Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh no longer inherit my $PATH.
On Jul 15, 2013, at 4:32 PM, Piotr Karbowski <jabberuser@xxxxxxxxx> wrote:
> For some reason zsh scripts no longer preserve $PATH that I modify in my .zshrc.
>
> if I do: echo -e '#!/bin/zsh \n echo $PATH' >test.zsh && chmod +x test.zsh && ./test.zsh the $PATH is altered, it wasnt as-is
>
> moving PATH altering part to .zshenv does 'fix' it but I would like to know how can I restore old behivor.
Does your /etc/zshenv or .zshenv set $PATH in any way? If they do, that is the $PATH that your zsh scripts will see. Only interactive shells source .zshrc.
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author