[1776] in RedHat Linux List
RE: Path Problem
daemon@ATHENA.MIT.EDU (Castelijn, Maurice)
Wed Oct 30 05:46:48 1996
From: "Castelijn, Maurice" <Castelijn.Maurice@kpmg.nl>
To: "redhat-list@redhat.com" <redhat-list@redhat.com>
Date: Wed, 30 Oct 1996 10:40:56 +0100
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
>> Is it impossible to add the current directory to the path?
>> I have tried editing /etc/profile and also the user's individual
>> .cshrc to add "." to the path, but with no luck. What's more: if I
>> do:
>> setenv PATH $PATH:.
>> or setenv PATH $PATH:./.
>> or setenv PATH $PATH:./
>>
>> and then I do "echo $PATH", the output does not include the dot (.).
>>
>> Also... where should I add environment variables that I want to set for
>> the whole system? For example, MINICOM is a long set of things with which
>> minicom doesnt work. I need to do "setenv MINICOM -m" everytime
>> (or put it in my own .login or .cshrc), but if I put the same thing
>> in /etc/profile, it just doesnt work. After I reboot, I check the MINICOM
>> env. variable and it is not "-m"
>>
>> Any one knows why? Thanks a lot....
>
>Try /etc/csh.cshrc.
>Not /etc/profile
>
>The later is for "sh" style shells like sh, bash, etc.
>The former is for "csh" style shells like csh, tcsh, etc.
Or ".bashrc" or ".cshrc" (the latter one probably):
look at something like:
"SETENV PATH="/usr/sbin:/sbin:$PATH"
and change it to:
"SETENV PATH=".:/usr/sbin:/sbin:$PATH"
Will definitely work... but it's usually not recommended because of
security problems... I do it though =)
Maurice.
>
>--
> Mike Sangrey <mike@sojurn.lns.pa.us> (Home)
> <Mike.Sangrey@specmarkmet.com>(Work)
> "I've trademarked `William Della Croce, Jr.(tm)'.
> Anyone using this name owes me $1,000,000."
>
>
>
>--
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> ________________________________________________________________________
> http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
> http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
> ------------------------------------------------------------------------
>To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com <
>/dev/null
>
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null