fix: redirections types
This commit is contained in:
parent
1e4b3fb0a8
commit
9d586402df
3 changed files with 12 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue