Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!steinmetz!vdsvax!barnett From: barnett@vdsvax.steinmetz.UUCP (Bruce G Barnett) Newsgroups: comp.unix.wizards Subject: Using history in csh scripts Message-ID: <2331@vdsvax.steinmetz.UUCP> Date: Fri, 21-Aug-87 12:02:55 EDT Article-I.D.: vdsvax.2331 Posted: Fri Aug 21 12:02:55 1987 Date-Received: Sun, 23-Aug-87 03:37:10 EDT Reply-To: barnett@steinmetz.UUCP (Bruce G Barnett) Distribution: world Organization: General Electric CRD, Schenectady, NY Lines: 20 Keywords: csh history 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