From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29992 invoked by alias); 17 Mar 2012 15:02:12 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16905 Received: (qmail 22781 invoked from network); 17 Mar 2012 15:02:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.171 as permitted sender) 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== MIME-Version: 1.0 In-Reply-To: <-5173424983285565090@unknownmsgid> References: <4F63ECD7.3040109@sergio.spb.ru> <87r4wr8opa.fsf@gmail.com> <-5173424983285565090@unknownmsgid> Date: Sat, 17 Mar 2012 15:54:55 +0100 Message-ID: Subject: Re: root's path From: Mikael Magnusson To: TJ Luoma Cc: Christian Neukirchen , "zsh-users@zsh.org" Content-Type: text/plain; charset=UTF-8 On 17 March 2012 15:52, TJ Luoma wrote: > On Mar 17, 2012, at 7:22 AM, Mikael Magnusson 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