fix(execution): Reimplemented the redirection logic

This commit is contained in:
Jean 2026-01-29 18:18:04 +01:00
parent a98161d885
commit ec63be42e5
4 changed files with 75 additions and 32 deletions

View file

@ -21,6 +21,7 @@ struct ast_redir
int io_number; // The FD being redirected (default -1 if not specified,
// implies 0 or 1 based on type)
enum ast_redir_type type;
int saved_fd; // To store the original FD for restoration (-1 before save)
};
bool ast_is_redir(struct ast *node);