diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2019-10-30 17:38:55 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2019-10-30 17:38:55 +0100 |
commit | f41dde0d66ce1a060c14ec2c1eb9b4f03b59f876 (patch) | |
tree | c2deb7ebfa327a123e6141e8323129c42daa8b8e /src/ft_process_arg.c | |
parent | Added 101 header on ft_error (diff) | |
download | 42-minishell-f41dde0d66ce1a060c14ec2c1eb9b4f03b59f876.tar.gz 42-minishell-f41dde0d66ce1a060c14ec2c1eb9b4f03b59f876.tar.bz2 42-minishell-f41dde0d66ce1a060c14ec2c1eb9b4f03b59f876.tar.xz 42-minishell-f41dde0d66ce1a060c14ec2c1eb9b4f03b59f876.tar.zst 42-minishell-f41dde0d66ce1a060c14ec2c1eb9b4f03b59f876.zip |
in progress
Diffstat (limited to '')
-rw-r--r-- | src/ft_process_arg.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |