.cshrc syntax help

From: Karen R McArthur <kmcarthu_at_bates.edu>
Date: Fri, 30 Jan 2004 07:24:08 -0500

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_at_bates.edu

Received on Fri Jan 30 2004 - 12:27:39 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:44 NZDT