Can you access command line args from a source'd script?

Glenn Boysko boysko at dsrgsun.CES.CWRU.Edu
Sat Aug 25 05:16:15 AEST 1990


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 at uunet.uu.net




More information about the Comp.unix.questions mailing list