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
commit 384e872ff9
Notes: sideshowbarker 2024-07-19 01:39:52 +09:00
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) {