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(-) 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