diff --git a/userspace/programs/Shell/Execute.cpp b/userspace/programs/Shell/Execute.cpp index 0e23a867..2e1ea7b3 100644 --- a/userspace/programs/Shell/Execute.cpp +++ b/userspace/programs/Shell/Execute.cpp @@ -274,6 +274,12 @@ BAN::ErrorOr Execute::execute_command(const PipedCommand& piped_command) } ); + if (piped_command.commands[i].arguments.empty()) + { + child_codes[i] = 0; + continue; + } + const int fd_in = last_pipe_rd; const int fd_out = new_pipe[1];