|
@ -27,7 +27,7 @@ int builtin_call(t_datas *datas, t_command *cmd) |
|
|
else if (ft_strncmp(cmd->argv[0], "env", 4) == 0) |
|
|
else if (ft_strncmp(cmd->argv[0], "env", 4) == 0) |
|
|
return (ft_env(datas, cmd)); |
|
|
return (ft_env(datas, cmd)); |
|
|
else if (ft_strncmp(cmd->argv[0], "exit", 5) == 0) |
|
|
else if (ft_strncmp(cmd->argv[0], "exit", 5) == 0) |
|
|
return (ft_exit(cmd)); |
|
|
return (ft_exit(datas, cmd)); |
|
|
else |
|
|
else |
|
|
return (-1); |
|
|
return (-1); |
|
|
} |
|
|
} |
|
|