From f41dde0d66ce1a060c14ec2c1eb9b4f03b59f876 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 30 Oct 2019 17:38:55 +0100 Subject: in progress --- src/ft_process_arg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_process_arg.c') diff --git a/src/ft_process_arg.c b/src/ft_process_arg.c index 9a1b620..75999b9 100644 --- a/src/ft_process_arg.c +++ b/src/ft_process_arg.c @@ -20,6 +20,8 @@ ft_process_arg(const char *arg) return (ft_echo(com, i)); else if (!ft_strncmp(com[0], "pwd", ft_strlen(com[0]))) return (ft_pwd()); + else if (!ft_strncmp(com[0], "./", 2)) + ft_exec(com); else return (ft_error(com[0], 127)); return (0); -- cgit v1.2.3