From c8c72449733f064f86b8a7c0b1284b6196fff0e3 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 9 Sep 2020 18:24:53 +0200 Subject: Re Added cmd variable --- src/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 6a0d36a..17dee77 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/28 11:45:44 by cacharle #+# #+# */ -/* Updated: 2020/09/09 14:20:41 by charles ### ########.fr */ +/* Updated: 2020/09/09 16:19:00 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -31,7 +31,6 @@ void tok_lst_debug(t_tok_lst *tokens); ** $? ** concurrent pipeline ** cmd variable preprocess -** PATH with no permission, link and other file system fun stuff ** signal on whole line instead of single command ** env local to current minishell process */ @@ -115,7 +114,7 @@ int main(int argc, char **argv, char **envp) char *line; print_prompt(); - while ((ret = ft_getline(STDOUT_FILENO, &line)) == FTGL_OK) + while ((ret = ft_getline(STDIN_FILENO, &line)) == FTGL_OK) { if (*line == '\0') { -- cgit