[comp.unix.questions] how can I "." in csh?

kluft@hpcupt1.HP.COM (Ian Kluft) (06/29/88)

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
------------------------------------------------------------------