summaryrefslogtreecommitdiffstats
path: root/src/minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-30 17:27:33 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-30 17:27:33 +0200
commit25f16106a8f4e9be81d5f415783a0675580605bc (patch)
treebb3c96fda7d97c5d6a8fa056515756dd26d301a7 /src/minishell.c
parentyessaye (diff)
parentBSD magick test (diff)
download42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.tar.gz
42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.tar.bz2
42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.tar.xz
42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.tar.zst
42-minishell-25f16106a8f4e9be81d5f415783a0675580605bc.zip
Merge branch 'vars'
Diffstat (limited to 'src/minishell.c')
-rw-r--r--src/minishell.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/minishell.c b/src/minishell.c
index 0e8dbdd..37e1520 100644
--- a/src/minishell.c
+++ b/src/minishell.c
@@ -30,6 +30,12 @@ int
t_msh *msh;
int32_t ret;
+ 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 */
@@ -56,4 +62,5 @@ int
** p_ -> parse related
** s_ -> structs related
** u_ -> utils related
+** v_ -> general purpose variables related
*/