Index: trunk/Ohana/src/opihi/lib.shell/opihi.c
===================================================================
--- trunk/Ohana/src/opihi/lib.shell/opihi.c	(revision 2598)
+++ trunk/Ohana/src/opihi/lib.shell/opihi.c	(revision 2800)
@@ -18,5 +18,6 @@
 
     line = readline (prompt);
-    if (line == NULL) {
+    if (line == NULL) { 
+      if (!isatty (STDIN_FILENO)) exit (2);
       fprintf (stdout, "Use \"quit\" to exit\n");
       Nbad ++;
