fix(execution): Reimplemented the redirection logic
This commit is contained in:
parent
a98161d885
commit
ec63be42e5
4 changed files with 75 additions and 32 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue