summaryrefslogtreecommitdiffstats
path: root/src/minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-30 16:23:45 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-30 16:23:45 +0200
commitd59bd533a9043abd0ba2a78686f823ed6ffe4b5b (patch)
treec0f8014fbce8b02d6016787ed63a0b36ea566f2d /src/minishell.c
parentThe variable list works (diff)
download42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.tar.gz
42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.tar.bz2
42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.tar.xz
42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.tar.zst
42-minishell-d59bd533a9043abd0ba2a78686f823ed6ffe4b5b.zip
BSD magick test
Diffstat (limited to 'src/minishell.c')
-rw-r--r--src/minishell.c7
1 files changed, 6 insertions, 1 deletions
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 */