zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Piotr Karbowski <jabberuser@gmail.com>
Cc: zsh-users <zsh-users@zsh.org>
Subject: Re: zsh no longer inherit my $PATH.
Date: Mon, 15 Jul 2013 15:23:56 -0700	[thread overview]
Message-ID: <CAH+w=7as7V5MDOPZqedzaOdXEBMS84rQLcMO3srfT1e5OJ2_Hw@mail.gmail.com> (raw)
In-Reply-To: <51E4626E.8050301@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

On Mon, Jul 15, 2013 at 1:58 PM, Piotr Karbowski <jabberuser@gmail.com>wrote:

>
> Ignore, gentoo bug 19924
>
> -- Piotr.
>
>
What's really stupid about that bug is that whoever made the most recent
change does not appear to have read/understood the comment thread in the
bug tracker, which clearly explains why /etc/zshenv is the WRONG place to
do this.

Well, strictly speaking it's fine to do this in /etc/zshenv PROVIDED that
the environment is changed NON-DESTRUCTIVELY.  In the case of PATH/path,
that means adding missing directories without deleting any that are already
there.

One approach would be to test [[ -o login ]] and set the path
unconditionally when that is true, or add to it when that is false.

  reply	other threads:[~2013-07-15 22:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-15 20:32 Piotr Karbowski
     [not found] ` <BA95BFDC-5F12-4582-B71B-9ABCD8C7B6B3@gmail.com>
2013-07-15 20:47   ` Piotr Karbowski
2013-07-15 20:58     ` Piotr Karbowski
2013-07-15 22:23       ` Bart Schaefer [this message]
2013-07-15 21:11 ` Lawrence Velázquez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7as7V5MDOPZqedzaOdXEBMS84rQLcMO3srfT1e5OJ2_Hw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=jabberuser@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).