From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8891 invoked by alias); 25 Oct 2012 17:12:56 -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: 17342 Received: (qmail 11439 invoked from network); 25 Oct 2012 17:12:43 -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.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bernd-steinhauser.de does not designate permitted sender hosts) Message-ID: <50897049.9040708@bernd-steinhauser.de> Date: Thu, 25 Oct 2012 19:00:57 +0200 From: Bernd Steinhauser User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120917 Thunderbird/15.0.1 MIME-Version: 1.0 To: zsh-users@zsh.org Subject: Re: Gentoo startup bug References: <5087FA6E.4070504@sharpsaw.org> <50880489.1030509@sharpsaw.org> In-Reply-To: <50880489.1030509@sharpsaw.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 24/10/12 17:08, ☈king wrote: > On 10/24/2012 10:00 AM, Damien Thébault wrote: >> I guess you could talk to the current maintainers of this package: >> http://euscan.iksaif.net/package/app-shells/zsh/ > Yes, sent them a ping. > >> But the solution doesn't seem simple, the bug have 35 comments. I >> think that a proposal should summarize the issues and explain the >> change. > https://bugs.gentoo.org/show_bug.cgi?id=19924#c33 > > That seems like a simple, correct solution, Mind if I ask how you come to that conclusion? > and it has worked fine for > me every time I've upgraded zsh on Gentoo since I've known about it. That's not really an appropriate way to find a correct solution. "It works" might be very far away from "It is correct". > The part I'm 100% sure about is that they're resetting $path after the > user's ~/.zshenv has run. That's wrong. I didn't look at Gentoo's zprofile in a few years, but even if (for whatever reason), they would reset $path after ~/.zshenv has run I highly doubt that your solution is desirable (Actually, it might be desirable to reset $path, because it affects `zsh -f`, but I didn't invest a lot of thought into that one.). Most likely, you misunderstood or misinterpreted what zshenv is for. There have been discussions about that topic zshenv vs. zshrc vs. zprofile on the zsh lists, you might want to search the archives for that (also look at zsh's manpage). Or mind if I ask why you set your user changes of $path in ~/.zshenv rather than ~/.zshrc (where it should be set, since you want it in interactive shells). Actually, if you move the global zprofile to zshenv, it is very likely, that zsh's tests fail, but then, tests are not run on gentoo by default, so most likely you wouldn't notice that.