1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 16:05:07 +00:00

Shell: Add redirections to the formatted command string

This commit is contained in:
AnotherTest 2020-10-28 17:20:42 +03:30 committed by Andreas Kling
parent a46318d414
commit 384e872ff9
2 changed files with 45 additions and 7 deletions

View file

@ -563,7 +563,7 @@ RefPtr<Job> Shell::run_command(const AST::Command& command)
FileDescriptionCollector fds;
if (options.verbose)
warnln("+ {}", m_pid, command);
warnln("+ {}", command);
// If the command is empty, store the redirections and apply them to all later commands.
if (command.argv.is_empty() && !command.should_immediately_execute_next) {