fix: cd is now usable
This commit is contained in:
parent
69fc4c573a
commit
3d62d3dde9
BIN
.nfs00000000098c816000000394
Executable file
BIN
.nfs00000000098c816000000394
Executable file
Binary file not shown.
@ -66,7 +66,7 @@ int ft_executable_parse(t_data *data, t_cmd *cmd)
|
|||||||
own = 1;
|
own = 1;
|
||||||
else if (ft_strcmp(cmd->args[0], "pwd") == 0)
|
else if (ft_strcmp(cmd->args[0], "pwd") == 0)
|
||||||
own = 1;
|
own = 1;
|
||||||
else if (ft_strcmp(cmd->args[0], "cmd") == 0)
|
else if (ft_strcmp(cmd->args[0], "cd") == 0)
|
||||||
own = 1;
|
own = 1;
|
||||||
if (own == 0)
|
if (own == 0)
|
||||||
path = ft_get_executable(data->env, cmd->args[0]);
|
path = ft_get_executable(data->env, cmd->args[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user