Index: trunk/Ohana/src/opihi/lib.shell/command.c
===================================================================
--- trunk/Ohana/src/opihi/lib.shell/command.c	(revision 25440)
+++ trunk/Ohana/src/opihi/lib.shell/command.c	(revision 27255)
@@ -1,4 +1,6 @@
 # include "opihi.h"
 # define DEBUG 0
+
+static int VERBOSE_SHELL = FALSE;
 
 int command (char *line, char **outline, int VERBOSE) {
@@ -29,7 +31,5 @@
   *outline = line;
   
-  # if (DEBUG) 
-  fprintf (stderr, "line: %s\n", line);
-  # endif
+  if (VERBOSE_SHELL) gprint (GP_ERR, "opihi: %s\n", line);
 
   argv = parse_commands (line, &argc);
@@ -60,5 +60,5 @@
     msg = get_variable_ptr ("ERRORMSG");
     if (msg != (char *) NULL) gprint (GP_ERR, "%s\n", msg);
-    // gprint (GP_ERR, "error on line: %s\n", rawline);
+    if (VERBOSE_SHELL) gprint (GP_ERR, "error on line: %s\n", rawline);
   }
 
@@ -73,4 +73,14 @@
 }
 
+void set_verbose_shell(int mode) {
+    VERBOSE_SHELL = mode;
+}
+
+int get_verbose_shell(void) {
+    return VERBOSE_SHELL;
+}
+
+    
+
 /* parse the input line, search for the corresponding command, and execute it
    if no match is found, return -1; this is used above to distinguish between
