fix: redirections types

This commit is contained in:
matteo 2026-01-28 11:34:29 +01:00
parent 1e4b3fb0a8
commit 9d586402df
3 changed files with 12 additions and 3 deletions

View file

@ -121,7 +121,7 @@ static int get_fd_target(const struct ast_redir *redir)
if (redir->io_number != -1)
return redir->io_number;
if (redir->type == AST_REDIR_TYPE_LESS
|| redir->type == AST_REDIR_TYPE_DLESS
|| redir->type == AST_REDIR_TYPE_LESSGREAT
|| redir->type == AST_REDIR_TYPE_LESSAND)
return 0;
return 1;