Index: uspace/app/bdsh/exec.c
===================================================================
--- uspace/app/bdsh/exec.c	(revision 7114d836ff84c10f98376e50246b4d5e34146131)
+++ uspace/app/bdsh/exec.c	(revision d0febca9f86b5690d11fec7c645836a758567fe6)
@@ -113,4 +113,5 @@
 {
 	task_id_t tid;
+	task_exit_t texit;
 	char *tmp;
 	int retval;
@@ -127,7 +128,10 @@
 	}
 	
-	task_wait(tid, &retval);
-	if (retval != 0)
+	task_wait(tid, &texit, &retval);
+	if (texit != TASK_EXIT_NORMAL) {
+		printf("Command failed (unexpectedly terminated).\n");
+	} else if (retval != 0) {
 		printf("Command failed (return value %d).\n", retval);
+	}
 
 	return 0;
