Index: /trunk/Ohana/src/opihi/lib.shell/opihi.c
===================================================================
--- /trunk/Ohana/src/opihi/lib.shell/opihi.c	(revision 42918)
+++ /trunk/Ohana/src/opihi/lib.shell/opihi.c	(revision 42919)
@@ -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
 
Index: /trunk/Ohana/src/opihi/pclient/pclient.c.in
===================================================================
--- /trunk/Ohana/src/opihi/pclient/pclient.c.in	(revision 42918)
+++ /trunk/Ohana/src/opihi/pclient/pclient.c.in	(revision 42919)
@@ -4,5 +4,5 @@
 # define opihi_prompt "pclient: "
 # define opihi_description "pcontrol client shell\n"
-# define opihi_history ""
+# define opihi_history "NONE"
 # define opihi_rcfile ".pcontrolrc"
 
Index: /trunk/Ohana/src/opihi/pcontrol/JobOps.c
===================================================================
--- /trunk/Ohana/src/opihi/pcontrol/JobOps.c	(revision 42918)
+++ /trunk/Ohana/src/opihi/pcontrol/JobOps.c	(revision 42919)
@@ -270,4 +270,5 @@
 
   FREE (job[0].hostname);
+  FREE (job[0].realhost);
   for (i = 0; i < job[0].argc; i++) {
     FREE (job[0].argv[i]);
Index: /trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in
===================================================================
--- /trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in	(revision 42918)
+++ /trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in	(revision 42919)
@@ -6,5 +6,5 @@
 # define opihi_prompt "pcontrol: "
 # define opihi_description "pcontrol client shell\n"
-# define opihi_history ".pcontrol"
+# define opihi_history "NONE"
 # define opihi_rcfile ".pcontrolrc"
 
