Index: /trunk/Ohana/src/opihi/lib.shell/opihi.c
===================================================================
--- /trunk/Ohana/src/opihi/lib.shell/opihi.c	(revision 2799)
+++ /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 ++;
Index: /trunk/Ohana/src/opihi/lib.shell/startup.c
===================================================================
--- /trunk/Ohana/src/opihi/lib.shell/startup.c	(revision 2799)
+++ /trunk/Ohana/src/opihi/lib.shell/startup.c	(revision 2800)
@@ -144,6 +144,4 @@
     if (ONLY_INPUT) exit (2);
     if (is_script) exit (2);
-    if (!isatty (STDIN_FILENO)) exit (2);
-    if (!isatty (STDOUT_FILENO)) exit (2);
   }
 }
