Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!uflorida!math.ufl.edu!shadrach.math.ufl.edu!squash From: squash@math.ufl.edu (Jonathan King) Newsgroups: comp.unix.wizards Subject: THANK YOU ALL: Can a command be stuffed into History? Message-ID: Date: 6 Apr 91 00:02:16 GMT References: Sender: news@math.ufl.edu Distribution: comp Organization: University of Florida Department of Mathematics Lines: 22 In-Reply-To: squash@math.ufl.edu's message of 4 Apr 91 18:49:54 Thanks to everyone for suggesting how I can make one command arrange that it is easy to execute a second. Jamie Mason and others suggested I write an alias which, after it does the desired actions, defines a short alias for the command I wish to easily execute later. I've written it, tried it, it works fine, and I thank you all for your kind help. Other respondents, andyb@coat.com,gatech!ames!omni.com!bob@bikini.cis.ufl.edu suggested using source -h in various clever ways. I still haven't figured out how Gary Weimer's suggestion of alias cmd 'FIRST_THING;echo "SECOND_THING";set x=$<;SECOND_THING' works, but it does. Also, it was suggested that such a simple question as mine be directed to other newgroups such as comp.unix.shell and comp.unix.questions I now know of the existence of these groups and have subscribed to them. THANKS EVERYONE. Jonathan