Index: trunk/Ohana/src/opihi/cmd.basic/quit.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.basic/quit.c	(revision 4302)
+++ trunk/Ohana/src/opihi/cmd.basic/quit.c	(revision 14449)
@@ -12,4 +12,10 @@
   } 
 
+// the libedit version of readline does not support an incremental write to history file
+# ifndef RL_READLINE_VERSION
+  history = get_variable("HISTORY");
+  if (history != NULL) write_history (history);
+# endif
+
   exit (state);
 
