From 9d643a31f647e48538e4ea4870b9f20f4a23882b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 22 Oct 2020 21:55:05 +0200 Subject: Fix but more to do --- src/p_redirs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/p_redirs.c') diff --git a/src/p_redirs.c b/src/p_redirs.c index 0ecdee7..86aca27 100644 --- a/src/p_redirs.c +++ b/src/p_redirs.c @@ -147,7 +147,8 @@ int8_t p_redirs(char word[], t_com **com, t_msh *msh) mode = u_meet_dquote(word, ptr, mode); else if (*ptr == C_SQUOTE) mode = u_meet_squote(word, ptr, mode); - else if (mode == Q_NONE && (*ptr == '<' || *ptr == '>') == 1) + else if (mode == Q_NONE && (*ptr == '<' || *ptr == '>') == 1 + && u_is_not_escaped(word, ptr) == TRUE) { if (p_get_redir(word, ptr, *com, msh) != 0) return (1); -- cgit v1.2.3