[comp.sys.amiga] Shell history saving/reloading

dac@runxtsa.runx.oz.au (Andrew Clayton) (10/09/90)

G'day,

I've been thinking of writing a program to rip out the HISTORY of commands
kept in AmigaShell, and save them to a file, and be able to reload that
(or any other!) history file into another Amigashell.

My question is twofold and a bit:

Firstly, has anyone else already done it, and if so, where can I snaffle
the program from.

Secondly, if I want to add new commands to the command history, I guess
I've got to update some pointers and stuff in the shell, no big deal, BUT
how does one go about ALLOCATING memory for another process from a program
and making sure that the new memory is part of the AmigaShell process, and not
part of your memory list?

It would be easier if someone had already done it, but it would be sort of
fun to code.

(I'm considering doing this 'project', and if I do it will be in M2Sprint
modula 2.)

Answers by MAIL please - I don't get all of Amiga.

(apologies in advance to those who don't get return mail - I get a 60%
undelivered mail rate on my replies. :-(  )


Dac
-- 
   _l _  _  Andrew Clayton.      I post .
  (_](_l(_  Canberra. Australia.       . . I am.