[comp.unix.wizards] Using history in csh scripts

barnett@vdsvax.steinmetz.UUCP (Bruce G Barnett) (08/21/87)

	We have a user here with a complex application of using the
history feature of the C-shell to dynamically change aliases when
directories are changed. However this doesn't seem to work in shell
scripts. 

	We tried using 

		csh -i script

but you can't pass arguments (except by standard input or environment
variables. ). Also comments are awkward ( you have to create an alias
for `#')

Can this be done? How?

(No flames on WHY we want to use history in scripts, please).

-- 
	Bruce G. Barnett 	<barnett@ge-crd.ARPA> <barnett@steinmetz.UUCP>