tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Karen R McArthur <kmcarthu@bates.edu>
Subject: .cshrc syntax help
Date: Fri, 30 Jan 2004 07:24:08 -0500	[thread overview]
Message-ID: <401A4CE8.2000202@bates.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

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


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3082 bytes --]

             reply	other threads:[~2004-01-30 12:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-30 12:24 Karen R McArthur [this message]
2004-01-30 16:16 ` SUMMARY: .cshrc syntax help Karen R McArthur
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox