Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh no longer inherit my $PATH.
- X-seq: zsh-users 17878
 
- From: Piotr Karbowski <jabberuser@xxxxxxxxx>
 
- To: zsh-users@xxxxxxx
 
- Subject: zsh no longer inherit my $PATH.
 
- Date: Mon, 15 Jul 2013 22:32:42 +0200
 
- 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:subject         :content-type:content-transfer-encoding;        bh=3oprBHMs+NKRYhpxlgXuGxzv233EcH3J3LH8KrE30Ao=;        b=U/nErBFHZIG69hXug1BeKUPKDoPOBFHbznt7dQcT3uqH8KjpYfwfFT64LInrp6OV3+         9cJi70XpPMUIThxItOoWMnQGxJWcLMmZHMttLo4L1Nne9tf96G6wZE1900FzgX9pI0Ot         sXX7bPzKwXTH1NRv0cCjHVrFKwq5nb5ACIrgIWYKkLx/z16qVg9Ck0chkIzkipUlFiVD         QGrl7NTKkn2gPEvb9rupvN3DF+LaXkxwzY+2a0p1fgJpdzS2HGh7+tvp0PnAwcqAp+kk         kVHVu+vwXaJ6Ge6YExTisOn6gqQBTJkCrDlOsnRvgLfPOj2BRu5Be3cpDUFEU+2j/q+S         Perw==
 
- List-help: <mailto:zsh-users-help@zsh.org>
 
- List-id: Zsh Users List <zsh-users.zsh.org>
 
- List-post: <mailto:zsh-users@zsh.org>
 
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
 
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.
-- Piotr.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author