From bb3c586aae43f9afe094d72a1da62a7ab0612e34 Mon Sep 17 00:00:00 2001 From: kinou-p Date: Sun, 6 Mar 2022 17:02:38 +0100 Subject: [PATCH] usual --- Makefile | 4 ++-- main.c | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 404fdf3..d7711e5 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: apommier +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2022/03/06 12:50:24 by apommier #+# #+# # -# Updated: 2022/03/06 16:02:30 by apommier ### ########.fr # +# Updated: 2022/03/06 16:59:33 by apommier ### ########.fr # # # # **************************************************************************** # @@ -15,7 +15,7 @@ NAME = minishell SRCS = main.c OBJS = ${SRCS:.c=.o} CC = gcc -CFLAGS = -Wall -Wextra +#CFLAGS = -Wall -Wextra LIB = -lreadline #CFLAGS = -Wall -Wextra -Werror RM = rm -rf diff --git a/main.c b/main.c index fce8ab6..8b11efc 100644 --- a/main.c +++ b/main.c @@ -6,7 +6,7 @@ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/03/06 13:27:11 by apommier #+# #+# */ -/* Updated: 2022/03/06 13:31:54 by apommier ### ########.fr */ +/* Updated: 2022/03/06 17:01:22 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,6 +14,12 @@ int main(int ac, char **av, char **path) { + char *input; + printf("---MINISHELL START---\n"); + while (1); + { + input = readline("$-"); + } return (0); } \ No newline at end of file