Index: uspace/app/bdsh/exec.c
===================================================================
--- uspace/app/bdsh/exec.c	(revision 71717609ad839bc0a9376e3b86af0681295db668)
+++ uspace/app/bdsh/exec.c	(revision 087768f08b373a348b08eef890ee678a9a30e80b)
@@ -134,9 +134,12 @@
 		printf("%s: Failed waiting for command (%s)\n", progname,
 		    str_error(rc));
+		return 1;
 	} else if (texit != TASK_EXIT_NORMAL) {
 		printf("%s: Command failed (unexpectedly terminated)\n", progname);
+		return 1;
 	} else if (retval != 0) {
 		printf("%s: Command failed (exit code %d)\n",
 		    progname, retval);
+		return 1;
 	}
 
