diff --git a/lib/libft.a b/lib/libft.a index 5a7e96c..a48409a 100644 Binary files a/lib/libft.a and b/lib/libft.a differ diff --git a/lol.c b/lol.c new file mode 100644 index 0000000..e69de29 diff --git "a/lol.c\342\200\235" "b/lol.c\342\200\235" index f686800..81c76be 100644 --- "a/lol.c\342\200\235" +++ "b/lol.c\342\200\235" @@ -1 +1 @@ -“cat lol.c +“ls lol.c diff --git a/minishell b/minishell index 7b97132..e80d833 100755 Binary files a/minishell and b/minishell differ diff --git a/srcs/cmd_build.c b/srcs/cmd_build.c index 8871c10..61075f0 100755 --- a/srcs/cmd_build.c +++ b/srcs/cmd_build.c @@ -74,6 +74,7 @@ void build_cmds(char **matrix) bool add_cmds(char **matrix) { + // print_arrays(matrix); validate_rl(matrix); if (_shell()->valid_input == false) { diff --git a/srcs/cmd_build.o b/srcs/cmd_build.o index 09c370d..395f567 100644 Binary files a/srcs/cmd_build.o and b/srcs/cmd_build.o differ diff --git a/srcs/main.c b/srcs/main.c index 1f07057..4a5a8f7 100755 --- a/srcs/main.c +++ b/srcs/main.c @@ -91,9 +91,10 @@ void minishell(void) continue ; line = ft_var_expansion(line); matrix = line_to_matrix(line); - if (add_cmds(matrix) && init_remove_qt()) + if (add_cmds(matrix)) { - print_tcmd(_shell()->head); + init_remove_qt(); + // print_tcmd(_shell()->head); pipe_commands(_shell()->head); } else diff --git a/srcs/main.o b/srcs/main.o index e7353d8..c2e4615 100644 Binary files a/srcs/main.o and b/srcs/main.o differ diff --git a/srcs/parse.c b/srcs/parse.c index ea4e5c2..e4c5d1a 100755 --- a/srcs/parse.c +++ b/srcs/parse.c @@ -98,6 +98,5 @@ char **line_to_matrix(char *line) free (buff); } matrix[i] = 0; - print_arrays(matrix); return (matrix); } diff --git a/srcs/parse.o b/srcs/parse.o index 463ac34..e074c6f 100644 Binary files a/srcs/parse.o and b/srcs/parse.o differ diff --git a/srcs/parse_clean.c b/srcs/parse_clean.c index f93509d..cb10aac 100755 --- a/srcs/parse_clean.c +++ b/srcs/parse_clean.c @@ -24,7 +24,6 @@ char *parse_clean(char **p2str) i = 0; while (*str) { - // printf("EVAL----%s\n", str); if (*str == 2 || *str == '\'' || *str == '"') { c = *str++; diff --git a/srcs/parse_clean.o b/srcs/parse_clean.o index 67bdfd7..19ad6fd 100644 Binary files a/srcs/parse_clean.o and b/srcs/parse_clean.o differ diff --git a/srcs/validation.c b/srcs/validation.c index 4773836..4dd436c 100755 --- a/srcs/validation.c +++ b/srcs/validation.c @@ -70,9 +70,7 @@ void validate_rl(char **matrix) j++; } if (matrix[i][j] == '|') - { ft_validate_pipe_matrix(matrix, i, j); - } if (matrix[i][j] == '>') ft_validate_redir_output_matrix(matrix, i); if (matrix[i][j] == '<') diff --git a/srcs/validation.o b/srcs/validation.o index afcc884..259f88e 100644 Binary files a/srcs/validation.o and b/srcs/validation.o differ