Index: /tags/ipp-unions-20250528/Ohana/src/opihi/lib.shell/opihi.c
===================================================================
--- /tags/ipp-unions-20250528/Ohana/src/opihi/lib.shell/opihi.c	(revision 42913)
+++ /tags/ipp-unions-20250528/Ohana/src/opihi/lib.shell/opihi.c	(revision 42914)
@@ -4,5 +4,4 @@
 int opihi (int argc, char **argv) {
 
-  int Nbad;
   char *line, *prompt, *history;
   pid_t ppid;
@@ -15,5 +14,9 @@
   welcome ();
 
-  Nbad = 0;
+  // if HISTORY is defined, and does not have the value NONE, save history
+  int SaveHistory = TRUE;
+  if (!history || !strcasecmp(history, "none")) { SaveHistory = FALSE; }
+
+  int Nbad = 0;
   while (1) {  /** must exit with command "exit" or "quit" */
     if (Nbad == 10) exit (20);
@@ -40,9 +43,9 @@
     if (*line) {
       multicommand (line);
-      add_history (line);
+      if (SaveHistory) { add_history (line); }
 
 // the libedit version of readline does not support an incremental write to history file
 # ifdef RL_READLINE_VERSION
-      if (history != NULL) append_history (1, history);
+      if (SaveHistory) { append_history (1, history); }
 # endif
 
