diff --git a/bb.c b/bb.c index 53a95bc..ee5cf73 100644 --- a/bb.c +++ b/bb.c @@ -876,6 +876,7 @@ static int run_script(bb_t *bb, const char *cmd) setenv("BB", bb->nfiles ? bb->files[bb->cursor]->fullname : "", 1); dup2(fileno(tty_out), STDOUT_FILENO); + dup2(fileno(tty_out), STDERR_FILENO); dup2(fileno(tty_in), STDIN_FILENO); execvp(args[0], (char**)args); err(EXIT_FAILURE, "Failed to execute command: '%s'", cmd);