diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-22 21:55:05 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-22 21:55:05 +0200 |
commit | 9d643a31f647e48538e4ea4870b9f20f4a23882b (patch) | |
tree | cac63b18f9f37731c79b4b07d6f9fbbb8d21cc33 /src/p_redirs.c | |
parent | Error handled (diff) | |
download | 42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.tar.gz 42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.tar.bz2 42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.tar.xz 42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.tar.zst 42-minishell-9d643a31f647e48538e4ea4870b9f20f4a23882b.zip |
Fix but more to do
Diffstat (limited to 'src/p_redirs.c')
-rw-r--r-- | src/p_redirs.c | 3 |
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); |