Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!ig!agate!ucbvax!hplabs!hpda!hpcupt1!kluft
From: kluft@hpcupt1.HP.COM (Ian Kluft)
Newsgroups: comp.unix.questions
Subject: Re: how can I "." in csh?
Message-ID: <6060014@hpcupt1.HP.COM>
Date: 28 Jun 88 20:28:53 GMT
References: <3513@ncrcae.Columbia.NCR.COM>
Organization: HP Systems Technology Div, Cupertino CA
Lines: 20

rogerc@ncrcae.Columbia.NCR.COM (Roger Collins) writes:
> In csh, is there an easy way to duplicate the function of Bourne's "."
> command?  I want to input commands from a file and have them
> change the current layer's environment.

Yes.  Use "source" instead of "." in the C Shell.

Instead of
. script
type
source script

I believe that C shell had that feature first.  Of course, if I'm wrong,
we'll hear plenty about it.  :-)

------------------------------------------------------------------
    Ian Kluft			RAS Lab
    UUCP: hplabs!hprasor!kluft	HP Systems Technology Division
    ARPA: kluft@hpda.hp.com	Cupertino, CA
------------------------------------------------------------------