fix: small errors in exec and parser

This commit is contained in:
matteo 2026-01-29 09:59:16 +01:00
parent d775ab6c1a
commit 46dde29c20
3 changed files with 5 additions and 4 deletions

View file

@ -123,7 +123,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;