diff --git a/examples/testit.c b/examples/testit.c index 80295c2..1aec68b 100644 --- a/examples/testit.c +++ b/examples/testit.c @@ -45,6 +45,8 @@ int main(int argc, char *argv[] __attribute__ ((unused))) int doit; char *prompt, *p; + read_history(".testit_history"); + doit = argc == 1; if ((prompt = getenv("TESTPROMPT")) == NULL) prompt = "testit> "; @@ -63,6 +65,9 @@ int main(int argc, char *argv[] __attribute__ ((unused))) free(p); } + write_history(".testit_history"); + rl_uninitialize(); + return 0; }