Bug 89620
Summary: | Appending to $PATH in ~/.cshrc produces duplicates entries | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Bill Heiden <bill.heiden> |
Component: | tcsh | Assignee: | Miloslav Trmač <mitr> |
Status: | CLOSED WORKSFORME | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-08-19 18:10:53 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Bill Heiden
2003-04-25 03:41:31 UTC
And I forgot to add, since we are working heterogenous environment this also makes the development of standard dotfiles that more complicated. I'm not sure this is a bug. It is just the way csh variables work. If I do set x = (y) set x = ($x y) set x = ($x y) then x becomes equal to 'y y y'. The bash PATH environment variable works the same way. I know it's complicated but I usually do something like: echo $PATH | grep -Fq "$HOME/bin" if ($status) then set path = (/usr/local/bin $path $HOME/bin) in my scripts. I can't reproduce this behavior. If you still experience this with a recent release, please provide output files of (strace -ff -o log tcsh) for the tcsh process in question. |