Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5181 - Incorrect formation of path for Csh/Tcsh
Summary: Incorrect formation of path for Csh/Tcsh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Low minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-17 20:08 UTC by Jason Tokarz
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Tokarz 2002-07-17 20:08:24 UTC
In the file 'csh.env' a environment variable ($ROOTPATH) is defined, eg:

setenv ROOTPATH '/usr/local/bin:/opt/Acrobat5:/usr/X11R6/bin:/ ... '

but in 'csh.cshrc' shell variable ($path) is updated as:

set path = (/bin /sbin /usr/bin /usr/sbin $ROOTPATH)

This will cause the shell variable, $path, to contain colons which causes the
path to be interpreted wrong by the shell.

It should be something like:

setenv ROOTPATH '/usr/local/bin:/opt/Acrobat5:/usr/X11R6/bin:/ ...' (in csh.env)

then:

setenv PATH /bin:/sbin:/usr/bin:/usr/sbin:$ROOTPATH     (in csh.cshrc)

the shell will then update the $path variable correctly!
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-08 15:02:25 UTC
Kabau, dont you use tcsh ?
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-18 05:15:52 UTC
I dont know tcsh.
Comment 3 SpanKY gentoo-dev 2002-12-27 14:18:14 UTC
sorry about the delay ... added your fix to cvs

http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/app-shells/tcsh/files/csh.cshrc.diff?r1=1.1&r2=1.2