Index: /trunk/Ohana/src/opihi/lib.shell/parse.c
===================================================================
--- /trunk/Ohana/src/opihi/lib.shell/parse.c	(revision 3316)
+++ /trunk/Ohana/src/opihi/lib.shell/parse.c	(revision 3317)
@@ -76,6 +76,13 @@
       if (status) fprintf (stderr, "warning: exit status of command %d\n", status);
 
+      /* convert all but last return to ' '.  drop last return */
       for (B = val; *B != 0; B++) {
-	if (*B == '\n') *B = ' ';
+	if (*B == '\n') {
+	  if (B[1]) {
+	    *B = ' ';
+	  } else {
+	    *B = 0;
+	  }
+	}
       }
     } 
