* problems with $PATH
@ 1997-04-22 13:16 Louis-David Mitterrand
1997-04-22 14:16 ` Zefram
0 siblings, 1 reply; 6+ messages in thread
From: Louis-David Mitterrand @ 1997-04-22 13:16 UTC (permalink / raw)
To: zsh-users
I have defined
ZDOTDIR=~/.zsh
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...???
Am I missing something?
TIA
--
Louis-David Mitterrand
http://www.aparima.com/F1/
mito@aparima.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems with $PATH
1997-04-22 13:16 problems with $PATH Louis-David Mitterrand
@ 1997-04-22 14:16 ` Zefram
1997-04-22 14:32 ` Louis-David Mitterrand
0 siblings, 1 reply; 6+ messages in thread
From: Zefram @ 1997-04-22 14:16 UTC (permalink / raw)
To: mito; +Cc: zsh-users
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems with $PATH
1997-04-22 14:16 ` Zefram
@ 1997-04-22 14:32 ` Louis-David Mitterrand
1997-04-22 21:13 ` Stefan Monnier
0 siblings, 1 reply; 6+ messages in thread
From: Louis-David Mitterrand @ 1997-04-22 14:32 UTC (permalink / raw)
To: zsh-users
On Apr 22 97, Zefram <zefram@dcs.warwick.ac.uk> 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@aparima.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems with $PATH
1997-04-22 14:32 ` Louis-David Mitterrand
@ 1997-04-22 21:13 ` Stefan Monnier
1997-04-22 22:52 ` Greg Badros
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 1997-04-22 21:13 UTC (permalink / raw)
To: zsh-users
Louis-David Mitterrand <mito@aparima.com> writes:
> 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.
Wasn't there someone who recently complained about that arguing that the order
should be /etc/zshenv, /etc/zshrc, ~/.zshenv, ~/.zshrc ?
Oops, you're right, that was me !
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems with $PATH
1997-04-22 21:13 ` Stefan Monnier
@ 1997-04-22 22:52 ` Greg Badros
1997-04-23 8:18 ` Bruce Stephens
0 siblings, 1 reply; 6+ messages in thread
From: Greg Badros @ 1997-04-22 22:52 UTC (permalink / raw)
To: Stefan Monnier; +Cc: zsh-users
Stefan Monnier <monnier+/news/lists/zsh/users@TEQUILA.SYSTEMSZ.CS.YALE.EDU> writes:
> Louis-David Mitterrand <mito@aparima.com> writes:
> > 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.
>
> Wasn't there someone who recently complained about that arguing that the order
> should be /etc/zshenv, /etc/zshrc, ~/.zshenv, ~/.zshrc ?
> Oops, you're right, that was me !
> Stefan
I tend to agree. What was the argument against giving the user's files
the last laugh?
Greg
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problems with $PATH
1997-04-22 22:52 ` Greg Badros
@ 1997-04-23 8:18 ` Bruce Stephens
0 siblings, 0 replies; 6+ messages in thread
From: Bruce Stephens @ 1997-04-23 8:18 UTC (permalink / raw)
To: zsh-users
gjb@cs.washington.edu said:
> > Wasn't there someone who recently complained about that arguing
> that the order should be /etc/zshenv, /etc/zshrc, ~/.zshenv, ~/.zshrc
> ? Oops, you're right, that was me ! Stefan
> I tend to agree. What was the argument against giving the user's
> files the last laugh?
I think it was so that the system defaults could be disabled by the user
files. Under some circumstances you don't want the system files to be read
at all.
--
Bruce Stephens B.Stephens@isode.com
Isode Ltd. <URL:http://www.isode.com/>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1997-04-23 8:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-22 13:16 problems with $PATH Louis-David Mitterrand
1997-04-22 14:16 ` Zefram
1997-04-22 14:32 ` Louis-David Mitterrand
1997-04-22 21:13 ` Stefan Monnier
1997-04-22 22:52 ` Greg Badros
1997-04-23 8:18 ` Bruce Stephens
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).