Newsgroups: comp.unix.questions
Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!usenet.ins.cwru.edu!dsrgsun!boysko
From: boysko@dsrgsun.CES.CWRU.Edu (Glenn Boysko)
Subject: Can you access command line args from a source'd script?
Message-ID: <1990Aug24.191615.27944@usenet.ins.cwru.edu>
Summary: Is it possible?
Keywords: source, . 
Sender: clsi!glenn@uunet.uu.net (Glenn Boysko) 
Organization: CWRU Dept of Computer Engineering and Science
Distribution: na
Date: Fri, 24 Aug 90 19:16:15 GMT
Lines:       16

Is it possible to get the filename of a sourced file (either Csh or Sh) while
the file is being sourced?

For example, can you have a sourced file echo its pathname?  Something like:

	% source <some_path_name>

	I am <some_path_name>

Curious,
Glenn

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Glenn Boysko		clsi!glenn@uunet.uu.net

