From c0c5582d5bbadca30b2fbae8d12ceb5ae18ffd4d Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 28 Apr 2020 18:42:06 +0200 Subject: The variable list works --- src/minishell.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/minishell.c') diff --git a/src/minishell.c b/src/minishell.c index 96b51c8..3b8e043 100644 --- a/src/minishell.c +++ b/src/minishell.c @@ -28,6 +28,7 @@ int { t_msh *msh; int32_t ret; + int32_t i; /* TODO: increment $SHLVL */ /* TODO: also set $SHELL */ @@ -55,4 +56,5 @@ int ** p_ -> parse related ** s_ -> structs related ** u_ -> utils related +** v_ -> general purpose variables related */ -- cgit v1.2.3 From d59bd533a9043abd0ba2a78686f823ed6ffe4b5b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 30 Apr 2020 16:23:45 +0200 Subject: BSD magick test --- src/minishell.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/minishell.c') diff --git a/src/minishell.c b/src/minishell.c index 3b8e043..7ddaa42 100644 --- a/src/minishell.c +++ b/src/minishell.c @@ -28,8 +28,13 @@ int { t_msh *msh; int32_t ret; - int32_t i; + char *str; + str = ft_strdup("qwe\'"); + ft_printf("%s\n", str); + str = ft_strsubst(str, "\'", ""); + ft_printf("%s\n", str); + return (0); /* TODO: increment $SHLVL */ /* TODO: also set $SHELL */ /* TODO: handle general variables | $var */ -- cgit v1.2.3