Skip to content

Commit

Permalink
eval ready. do your thing henrique
Browse files Browse the repository at this point in the history
  • Loading branch information
vctrubio committed Feb 25, 2023
1 parent 6e416c3 commit 9e7822f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ LIBFT = lib/libft.a

CC = gcc

# CFLAGS = -fsanitize=address
CFLAGS = -Werror -Wall -Wextra -g -I $(HEADER) -fsanitize=address

SRCS = $(wildcard ./srcs/*.c)
Expand Down
2 changes: 1 addition & 1 deletion srcs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void ft_handler(int signum)
if (pid == -1)
{
write(1, "\n", 1);
// rl_replace_line("", 0);
rl_replace_line("", 0);
rl_on_new_line();
rl_redisplay();
}
Expand Down
6 changes: 1 addition & 5 deletions srcs/piping.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void pipe_commands(t_cmd *cmd)
pipe_commands_build_pipes(pipes, i[2]);
curr = cmd;
i[0] = 0;
if (check_if_builtin_not_pipe(curr)) //PROBLEM HERE PROP
if (check_if_builtin_not_pipe(curr))
_shell()->exit_code = run_builtin((curr));
else
{
Expand All @@ -112,7 +112,3 @@ void pipe_commands(t_cmd *cmd)
}
pipe_commands_cleanup(i[2], pipes, path);
}


//cd srcs
//-> cd is being ran twice man, cd srcs (success) cd srcs (failure becasue chdir has occured.)

0 comments on commit 9e7822f

Please sign in to comment.