summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_exec.c10
-rw-r--r--src/ft_process_arg.c2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/ft_exec.c b/src/ft_exec.c
new file mode 100644
index 0000000..0c950e4
--- /dev/null
+++ b/src/ft_exec.c
@@ -0,0 +1,10 @@
+#include <libft.h>
+#include <minishell.h>
+#include <uinstd.h>
+
+int
+ft_exec(char **app)
+{
+ (void)app;
+ return (0);
+}
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);