From 7afd22aacdae5d88f560576fd7261801beb60739 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 14 Sep 2020 15:44:33 +0200 Subject: Refactoring redir and preprocess_filename to distiguish between command error and fatal error --- src/lexer/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lexer/utils.c') diff --git a/src/lexer/utils.c b/src/lexer/utils.c index d440de4..b4846d6 100644 --- a/src/lexer/utils.c +++ b/src/lexer/utils.c @@ -6,7 +6,7 @@ /* By: nahaddac +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/07/16 08:18:15 by nahaddac #+# #+# */ -/* Updated: 2020/09/14 11:38:18 by nahaddac ### ########.fr */ +/* Updated: 2020/09/14 15:16:35 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -97,8 +97,8 @@ int quote_len(char *input, int i) i++; while (input[i] != quote_type && input[i] != '\0') { - if(input[i] == '\\') - i+=2; + if (quote_type == '"' && input[i] == '\\') + i++; i++; } while (ft_isblank(input[i + 1])) -- cgit