Can a command be stuffed into History?
Gary Weimer 253-7796
weimer at garden.ssd.kodak.com
Sat Apr 6 04:40:54 AEST 1991
In article <SQUASH.91Apr4184954 at heat.math.ufl.edu> you write:
|> 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 <CR> later to execute it?
Not exactly what you asked, but in csh you could just do:
alias cmd 'FIRST_THING;echo "SECOND_THING";set x=$<;SECOND_THING'
this will run FIRST_THING, print SECOND_THING (not at a prompt),
wait for <CR> and then run SECOND_THING
weimer at ssd.kodak.com ( Gary Weimer )
More information about the Comp.unix.wizards
mailing list