.cshrc syntax help

From: Karen R McArthur (kmcarthu@bates.edu)
Date: Fri Jan 30 2004 - 07:24:08 EST


I'd like to add an if statement to our .cshrc or .login file, but I'm
having problems with the syntax. Could someone help?

If the "dot" entry does not exist in the $PATH variable, append it to
the $PATH variable. Sounds simple enough, huh? I've tried the
following and many permutations of it ... any help would be appreciated.

if ( ${PATH} !~ *\.* ) then
    set PATH=($PATH .)
endif

-- 
Karen R. McArthur, Systems Administrator
Bates College, Information and Library Services
Lewiston, Maine 04240
(207) 786-8236 fax:(207) 786-6057
kmcarthu@bates.edu




This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:50 EDT