From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26708 invoked by alias); 15 Jul 2013 20:54:54 -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: 17879 Received: (qmail 19282 invoked from network); 15 Jul 2013 20:54:38 -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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.212.173 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=6XiWp2Apl2CDXiURY5zL6cSTypITLwbxBMfvCa7yGK8=; b=c0e3IOmTUlnROVmt7fJpvgpWYU9G9fvWxOXWgriRYtcysbryvqxFoh7sj4rM3U7K0l gd7lzFHVMXLUlROv7jvPXK5dDPCNFw86EQR9ChEKONHORpbAyCdlk387X0O0mPEfFfpg Kc1QIm5rBUfC21u08pVbzxkfebHNcFPLfvLvz/LGox9IHsrEjMeNA7X1/zwoDUZOY3y3 ZjzP2jxqvcbnKLRuLxqLQcNtfLpRnFYJ27FEfOCJUV7ajoqikwqfluS+RVtiiYfmyN8c yXsfQzLxSFmVVTx2Ubx8r4GQY30AWzKmxt5qSZau9V7Xq8c9p7PTrrMv089cEtkWBruY mOKg== X-Received: by 10.180.160.165 with SMTP id xl5mr10054686wib.46.1373921276195; Mon, 15 Jul 2013 13:47:56 -0700 (PDT) Message-ID: <51E45FF9.50908@gmail.com> Date: Mon, 15 Jul 2013 22:47:53 +0200 From: Piotr Karbowski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130703 Thunderbird/17.0.7 MIME-Version: 1.0 To: TJ Luoma CC: zsh-users Subject: Re: zsh no longer inherit my $PATH. References: <51E45C6A.5070202@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/15/2013 10:45 PM, TJ Luoma wrote: > > > On 15 Jul 2013, at 15:32, Piotr Karbowski wrote: > > > For some reason zsh scripts no longer preserve $PATH that I modify in > > my .zshrc. > > > > if I do: echo -e '#!/bin/zsh \n echo $PATH' >test.zsh && chmod +x > > test.zsh && ./test.zsh the $PATH is altered, it wasnt as-is > > > > moving PATH altering part to .zshenv does 'fix' it but I would like to > > know how can I restore old behivor. > > > > If I run script with /bin/sh shebang, it will preserve my $PATH and > > this is exacly what I want, but with zsh, which is essential. > > > Are you on a Mac? If so, try renaming /etc/zprofile to /etc/zshenv > > Nope, Gentoo. -- Piotr.