summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-11-01 17:45:06 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-11-01 17:45:06 +0100
commitff258032adf915aa694feb9654e0a5e6019b3aba (patch)
treeeb88e61ef0c3729aa4df2d28448f74505c51949f /src/main.c
parentYO PICKED THE WRONG FOOL, HOUSE (diff)
download42-minishell-ff258032adf915aa694feb9654e0a5e6019b3aba.tar.gz
42-minishell-ff258032adf915aa694feb9654e0a5e6019b3aba.tar.bz2
42-minishell-ff258032adf915aa694feb9654e0a5e6019b3aba.tar.xz
42-minishell-ff258032adf915aa694feb9654e0a5e6019b3aba.tar.zst
42-minishell-ff258032adf915aa694feb9654e0a5e6019b3aba.zip
Now deals with history
Diffstat (limited to '')
-rw-r--r--src/main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index cf60fa2..372e04f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -43,15 +43,9 @@ int
if (c == '\n')
break ;
arg[i] = c;
- if (!ft_strncmp("", arg, 4))
- {
- arg = ft_get_last_line();
- break ;
- }
i++;
}
arg[i] = '\0';
- ft_history(arg);
ft_process_arg(arg);
}
free(arg);