Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: problems with $PATH



On Apr 22 97, Zefram <zefram@xxxxxxxxxxxxxxxxx> wrote:
> Louis-David Mitterrand wrote:
> >and put my PATH statement in ~/.zsh/.zshenv so that even when working in
> >an editor the shell knows my PATH. And 'echo $PATH' from the vi command
> >line gives the correct value.
> >
> >Then I have erased the PATH from ~/.zsh/.zshrc thinking that it is now
> >redundant because ~/.zsh/.zshenv is read on any invocation of the shell.
> >But when working at the normal shell prompt 'echo $PATH' does not give a
> >correct value...???
> 
> Is there possibly an /etc/zprofile or /etc/zshrc modifying the path?
> 
> -zefram

You are right, I had redundantly defined the PATH in both /etc/zshenv
and /etc/zprofile, this last one wiped out the ~/.zsh/.zshenv PATH
entry. I should read the docs better. 

Thank you Zefram.

-- 

     Louis-David Mitterrand
     http://www.aparima.com/F1/
     mito@xxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author