Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!news.cs.indiana.edu!news.nd.edu!mentor.cc.purdue.edu!sage.cc.purdue.edu!asg From: asg@sage.cc.purdue.edu (Bruce Varney) Newsgroups: comp.unix.wizards Subject: Re: Can a command be stuffed into History? Message-ID: <9682@mentor.cc.purdue.edu> Date: 5 Apr 91 16:53:29 GMT References: Sender: news@mentor.cc.purdue.edu Reply-To: asg@sage.cc.purdue.edu (Bruce Varney) Distribution: comp Organization: Purdue University Lines: 28 In article squash@math.ufl.edu (Jonathan King) writes: }Could some kind soul tell me how to write an alias (or a script) }which, after having done something (eg. an lpr command) }places on the history list, a particular command. } My intention is to later execute this command with !! . } If this cannot be done, is it possible to have the alias type a }command to the Unix prompt, so that I can hit later to execute it? } }Jonathan squash@math.ufl.edu I believe ksh can do it print -s whateveryouwantaddedtoyourhistorylist hope this helps Bruce --------- sar.casm \'sa:r-.kaz-*m\ \sa:r-'kas-tik\ \-ti-k(*-)le-\ n [F sarcasme, fr. LL sarcasmos, fr. Gk sarkasmos, fr. sarkazein to tear flesh, bite the lips in rage, sneer, fr. sark-, sarx flesh; akin to Av thwar*s to cut] 1: a cutting, hostile, or contemptuous remark : GIBE 2: the use of caustic or ironic language - sar.cas.tic aj ### ## Courtesy of Bruce Varney ### # aka -> The Grand Master # asg@sage.cc.purdue.edu ### ##### # PUCC ### # ;-) # # ;'> # ##