mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 20:57:35 +00:00
Shell: Fix outdated debug log code
This commit is contained in:
parent
6d4016dd01
commit
20d4287eaf
1 changed files with 7 additions and 6 deletions
|
@ -646,13 +646,14 @@ NonnullRefPtrVector<Job> Shell::run_commands(Vector<AST::Command>& commands)
|
||||||
for (auto& arg : command.argv)
|
for (auto& arg : command.argv)
|
||||||
dbg() << "argv: " << arg;
|
dbg() << "argv: " << arg;
|
||||||
for (auto& redir : command.redirections) {
|
for (auto& redir : command.redirections) {
|
||||||
if (redir->is_path_redirection()) {
|
if (redir.is_path_redirection()) {
|
||||||
auto path_redir = (const AST::PathRedirection*)redir.ptr();
|
auto path_redir = (const AST::PathRedirection*)&redir;
|
||||||
dbg() << "redir path " << (int)path_redir->direction << " " << path_redir->path << " <-> " << path_redir->fd;
|
dbg() << "redir path " << (int)path_redir->direction << " " << path_redir->path << " <-> " << path_redir->fd;
|
||||||
} else if (redir->is_fd_redirection()) {
|
} else if (redir.is_fd_redirection()) {
|
||||||
dbg() << "redir fd " << redir->source_fd << " -> " << redir->dest_fd;
|
auto* fdredir = (const AST::FdRedirection*)&redir;
|
||||||
} else if (redir->is_close_redirection()) {
|
dbg() << "redir fd " << fdredir->source_fd << " -> " << fdredir->dest_fd;
|
||||||
auto close_redir = (const AST::CloseRedirection*)redir.ptr();
|
} else if (redir.is_close_redirection()) {
|
||||||
|
auto close_redir = (const AST::CloseRedirection*)&redir;
|
||||||
dbg() << "close fd " << close_redir->fd;
|
dbg() << "close fd " << close_redir->fd;
|
||||||
} else {
|
} else {
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue