Index: trunk/Ohana/src/opihi/lib.shell/parse.c
===================================================================
--- trunk/Ohana/src/opihi/lib.shell/parse.c	(revision 41517)
+++ trunk/Ohana/src/opihi/lib.shell/parse.c	(revision 42278)
@@ -124,5 +124,7 @@
       free (B);
 
+      // XXX make this error output conditional
       if (filestatus) gprint (GP_ERR, "warning: exit status of command %d\n", filestatus);
+      set_int_variable ("EXECSTATUS", filestatus);
 
       /* convert all but last return to ' '.  drop last return */
