Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: root's path
- X-seq: zsh-users 16905
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: TJ Luoma <tj@xxxxxx>
- Subject: Re: root's path
- Date: Sat, 17 Mar 2012 15:54:55 +0100
- Cc: Christian Neukirchen <chneukirchen@xxxxxxxxx>, "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OLjAJOpUoWI+MhmBhnJbz78z/5I4yH6eFxX7q9kFXKM=; b=IU9d8qjyz0D+T8e1aSlstgEOITLbaXGrQbf+NRT6tDT8r0QVFpu/WPXLX9DY8ELtmF TW6wyOYDrevMoXPsxw4Ne04CYb9BU9pn9Pc3Hd1aUohvaQ3vDlU2rR/X+764oMiKOSOz c6mcq5cQhowWh5ou9H+Jprg8Q9fe9S1KVC2z+9lxNSBcFJWj/MiEY5DRCI8MALLnWcq6 z9yquC/dR3pNe0P2yfT9E7TWVibptF6TSB+74IaCyLFmGUuPhojhGqP+O5YcPA6P95er 6ekePPlFGTfNYBMpRaXRgae537Z6QgyXLJERLT5fV+U7ULFk22IU3VKDxD/R7p4kPmgB YQbw==
- In-reply-to: <-5173424983285565090@unknownmsgid>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <4F63ECD7.3040109@sergio.spb.ru> <alpine.LNX.2.01.1203170040230.18133__19065.733991056$1331959656$gmane$org@hp.internal> <87r4wr8opa.fsf@gmail.com> <CAHYJk3Qoev7k6b6761SiVUWBD-EjnxmXQCzwJrGxfwoM8sp8ug@mail.gmail.com> <-5173424983285565090@unknownmsgid>
On 17 March 2012 15:52, TJ Luoma <tj@xxxxxx> wrote:
> On Mar 17, 2012, at 7:22 AM, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
>> Absolutely not, if you set PATH from *env, it makes it impossible to
>> inherit the PATH from the parent process' environment, even in
>> scripts, which will break a lot of things. The path should only be set
>> once on login of the current session, ie in zprofile if zsh is your
>> login shell, otherwise in the startup file for your login shell.
>
> Fwiw, Zsh on the Mac inits its path from /etc/zshenv
I know, that's a bug in osx.
> The global environmental variable has to be set _somewhere_ otherwise
> there's nothing for shells to inherit.
Like I said, the correct place to set it is in the profile file for
the login shell.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author