diff --git a/headers/minishell_prototypes.h b/headers/minishell_prototypes.h index 94aec01..b91f750 100644 --- a/headers/minishell_prototypes.h +++ b/headers/minishell_prototypes.h @@ -6,13 +6,15 @@ /* By: lperrey +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */ -/* Updated: 2021/11/18 13:18:08 by hulamy ### ########.fr */ +/* Updated: 2021/11/18 17:52:50 by hulamy ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef MINISHELL_PROTOTYPES_H # define MINISHELL_PROTOTYPES_H +int + // Init int init(t_all *c, char *envp[]); char **retrieve_path(char *envp[]); diff --git a/srcs/parsing/redirections/here_doc.c b/srcs/parsing/redirections/here_doc.c index 1f590aa..7595682 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/11/18 17:17:42 by hulamy ### ########.fr */ +/* Updated: 2021/11/18 17:32:32 by hulamy ### ########.fr */ /* */ /* ************************************************************************** */ @@ -74,7 +74,7 @@ static int here_doc_write(char *delimiter, int doc_fd) ft_putstr_fd(" delimited by end-of-file (wanted `", 2); ft_putstr_fd(delimiter, 2); ft_putstr_fd("')\n", 2); - return (0); + return (1); } if (ft_strncmp(line, delimiter, ft_strlen(line) + 1) == 0) // Ou ft_strlen(delimiter) + 1 ? Ça devrais être identique et ça peux se calculer une seul fois. break ;