From 01bbec2774d59edee12df7b6d798d992db08f9d9 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Sat, 18 Dec 2021 12:30:12 +0100 Subject: [PATCH] modifs avec luke --- minishell_tests | 2 +- srcs/parsing/redirections/here_doc.c | 2 +- srcs/shell_loop.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/minishell_tests b/minishell_tests index 71beb2e..918efaf 160000 --- a/minishell_tests +++ b/minishell_tests @@ -1 +1 @@ -Subproject commit 71beb2eeb7d0584f28bc9265e28e9814751c967f +Subproject commit 918efaf73c299191fed714595a9c16e18ad2e78b diff --git a/srcs/parsing/redirections/here_doc.c b/srcs/parsing/redirections/here_doc.c index fa8ae6e..18b5341 100644 --- a/srcs/parsing/redirections/here_doc.c +++ b/srcs/parsing/redirections/here_doc.c @@ -6,7 +6,7 @@ /* By: lperrey +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/11/11 18:46:43 by lperrey #+# #+# */ -/* Updated: 2021/12/16 14:49:53 by hulamy ### ########.fr */ +/* Updated: 2021/12/17 22:09:51 by hulamy ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/srcs/shell_loop.c b/srcs/shell_loop.c index 12b6e93..6ac2057 100644 --- a/srcs/shell_loop.c +++ b/srcs/shell_loop.c @@ -6,7 +6,7 @@ /* By: lperrey +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/10/04 05:59:26 by lperrey #+# #+# */ -/* Updated: 2021/12/10 10:23:40 by hulamy ### ########.fr */ +/* Updated: 2021/12/17 22:11:26 by hulamy ### ########.fr */ /* */ /* ************************************************************************** */ @@ -48,6 +48,7 @@ static char *read_input(char *prompt, t_all *c) ft_bzero(&signal_behaviour, sizeof signal_behaviour); signal_behaviour.sa_handler = sigint_handler_interactive; sigaction(SIGINT, &signal_behaviour, NULL); + rl_event_hook = NULL; line_input = readline(prompt); signal_behaviour.sa_handler = SIG_IGN; sigaction(SIGINT, &signal_behaviour, NULL);