Summary: | tcsh: subshells get $PATH reset not inherited | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paul Hirst <p.hirst> |
Component: | Current packages | Assignee: | Daniel Black (RETIRED) <dragonheart> |
Status: | RESOLVED WONTFIX | ||
Severity: | minor | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Paul Hirst
2005-01-12 18:53:59 UTC
yes its weird - don't know why. I guess I haven't found an answer yet and I'm sure this is something that could be answered elsewere. To be perfectly honest I'm not interested in looking into this any further. Take it upstream or to a user groups somewhere if your still interested. Well, after a bit of poking around I can tell you why it happens - because any tcsh that gets launched sources /etc/csh.cshrc, and this file does the following (in order but obviously not complete): source ~/.tcsh.config source /etc/csh.env In /etc/csh.env, we unconditionally setenv various things, including $PATH, to absolute values. For googlers who come across this bug: Note also that a shell variable called PATH can shadow the environment variable called PATH. for more info, see http://www.ynform.org/w/Pub/Csh |