Skip to content

Commit

Permalink
fixed echo cat
Browse files Browse the repository at this point in the history
  • Loading branch information
vctrubio committed Feb 25, 2023
1 parent 0e8e2c0 commit b3c4134
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 7 deletions.
Binary file modified lib/libft.a
Binary file not shown.
Empty file added lol.c
Empty file.
2 changes: 1 addition & 1 deletion lol.c”
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cat lol.c
ls lol.c
Binary file modified minishell
Binary file not shown.
1 change: 1 addition & 0 deletions srcs/cmd_build.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Binary file modified srcs/cmd_build.o
Binary file not shown.
5 changes: 3 additions & 2 deletions srcs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified srcs/main.o
Binary file not shown.
1 change: 0 additions & 1 deletion srcs/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,5 @@ char **line_to_matrix(char *line)
free (buff);
}
matrix[i] = 0;
print_arrays(matrix);
return (matrix);
}
Binary file modified srcs/parse.o
Binary file not shown.
1 change: 0 additions & 1 deletion srcs/parse_clean.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down
Binary file modified srcs/parse_clean.o
Binary file not shown.
2 changes: 0 additions & 2 deletions srcs/validation.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] == '<')
Expand Down
Binary file modified srcs/validation.o
Binary file not shown.

0 comments on commit b3c4134

Please sign in to comment.