Compare commits

...

4 Commits

Author SHA1 Message Date
Camille Chauvet
b98717ae1a execution fix 2023-02-23 15:12:41 +01:00
Camille Chauvet
413d75b94c Merge branch 'master' of git.chauvet.pro:starnakin/minishell 2023-02-23 13:38:03 +01:00
Camille Chauvet
f31d805d83 Merge branch 'master' of git.chauvet.pro:starnakin/minishell 2023-02-23 13:37:42 +01:00
Camille Chauvet
28fedfdd75 merge 2023-02-23 13:37:26 +01:00
3 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,6 @@ static int ft_excutor(t_cmd *cmd, t_list **env)
tab = env_to_strs(env); tab = env_to_strs(env);
if (tab == NULL) if (tab == NULL)
return (1); return (1);
tab = NULL;
dup2(cmd->fd_out, 1); dup2(cmd->fd_out, 1);
dup2(cmd->fd_in, 0); dup2(cmd->fd_in, 0);
execve(cmd->executable, cmd->args, tab); execve(cmd->executable, cmd->args, tab);

BIN
minishell Executable file

Binary file not shown.

View File

@ -40,6 +40,7 @@ char *ft_get_file_path(const char *infile);
int ft_infile(char *line); int ft_infile(char *line);
int ft_outfile(char *line); int ft_outfile(char *line);
int ft_heredoc(char *stop); int ft_heredoc(char *stop);
int *ft_get_heredoc();
size_t ft_seglen_quoted(const char *str, char c); size_t ft_seglen_quoted(const char *str, char c);
int ft_cmds_executor(t_data *data, t_list **cmds); int ft_cmds_executor(t_data *data, t_list **cmds);
char **ft_split_quoted(const char *s, char c); char **ft_split_quoted(const char *s, char c);