Don't use special strings if #() commands fail, just remove the format

(as if the command produced nothing). Makes constructions that can fail
like '#(test whatever && echo foo)' work as they did before.
pull/1/head
nicm 2015-05-29 23:26:52 +00:00
parent 74c755f2ab
commit 2a8c2648f0
1 changed files with 0 additions and 11 deletions

View File

@ -175,17 +175,6 @@ format_job_callback(struct job *job)
fj->job = NULL;
free(fj->out);
if (WIFEXITED(job->status) && WEXITSTATUS(job->status) != 0) {
xasprintf(&fj->out, "<'%s' exited with %d>", fj->cmd,
WEXITSTATUS(job->status));
return;
}
if (WIFSIGNALED(job->status)) {
xasprintf(&fj->out, "<'%s' got signal %d>", fj->cmd,
WTERMSIG(job->status));
return;
}
buf = NULL;
if ((line = evbuffer_readline(job->event->input)) == NULL) {
len = EVBUFFER_LENGTH(job->event->input);