From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23946 invoked by alias); 29 Jan 2013 12:30:22 -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: 17619 Received: (qmail 16533 invoked from network); 29 Jan 2013 12:30:21 -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=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.219.45 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SZRysZZ3pSO6jZKrwjXNNxHmso2PlLcU8mBBREkvzYQ=; b=ZWciEdn70dpVeJqNU3FY/62PckQDG/hlxK8/cgOCXwncc1d6YGnNZy6H3FNplcIeND fwZpIbVoOae3x/7Qhw4+YFjgTMGBhmEz15JtliAEKwy/2vb0mkRr+CfoPO4MkQTnWUFG q7/lJOueI3mmrNXgFJVj2nwfxuvwfrldGrRReMy7Ec8m1OL6hGAF4NVwEUQMzMn3hqdt LpZTXGKiCoJ4/JgJ3ond3B0O1PLXIUwnhOyyoRhBoPK6U8gGfy0Kbmq+E+NY34Q4rkNY DyLRo9IvqPx/qPenzQ6aQRlUHMZNOGdbVVK4pITpk59FBI9tcXinXYHEl12NNNM1GXzt lzWQ== MIME-Version: 1.0 X-Received: by 10.182.159.98 with SMTP id xb2mr467791obb.35.1359458650230; Tue, 29 Jan 2013 03:24:10 -0800 (PST) Sender: nikolai.weibull@gmail.com In-Reply-To: References: Date: Tue, 29 Jan 2013 12:24:10 +0100 X-Google-Sender-Auth: toSXXMNdYj9r6sJa7JEDGLiELjY Message-ID: Subject: Re: PATH reordered when running zsh inside screen on Mac OS X Mountain Lion and MacPorts From: Nikolai Weibull To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jan 29, 2013 at 7:21 AM, Lawrence Vel=C3=A1zquez wrote: > On Jan 28, 2013, at 5:08 AM, Nikolai Weibull wrote: >> I figured out what the problem was. /etc/zshenv on Mac OS X Mountain Li= on calls a utility called path_helper. > I agree that /etc/zprofile would be a better place to set ${PATH}, but yo= u would still run into the issue because terminal multiplexers usually run = login shells. I previously encountered it under tmux. Not screen, not the way I have it configured, anyway. Tmux seems to force logged in terminals. I guess one could check SHLVL or something like that. > The real problem is that /usr/libexec/path_helper alters ${PATH} even if = ${PATH} already contains the entries it wants to add. In this case, it move= s the entries to the beginning of ${PATH} instead of just leaving it as is. Yes, precisely. > The old zsh-devel port did use --enable-etcdir in its configure phase. Fo= r the reason given by Phil, I chose not to carry this over to the zsh port = when I assumed maintenance of both and obsoleted zsh-devel. Aha, that explains why it occured only recently. Thank you for filling in the details!