summaryrefslogtreecommitdiffstats
path: root/src/p_redirs.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/p_redirs.c3
1 files changed, 2 insertions, 1 deletions
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);