Compare commits

...

2 Commits

Author SHA1 Message Date
Camille Chauvet
b1d827e106 Merge branch 'master' of git.chauvet.pro:starnakin/minishell 2023-03-13 15:12:57 +01:00
Camille Chauvet
bf15a86c2e clean: remove trash file 2023-03-13 15:12:50 +01:00
3 changed files with 3 additions and 1 deletions

View File

@ -100,6 +100,7 @@ int ft_cmds_parser(t_data *data, const char *line)
tab = ft_split_quoted(line, '|'); tab = ft_split_quoted(line, '|');
if (tab == NULL) if (tab == NULL)
{ {
ft_freer_tab_ultimate(1, tab);
ft_eprintf("minishell: malloc failed\n"); ft_eprintf("minishell: malloc failed\n");
return (1); return (1);
} }

View File

@ -38,6 +38,8 @@ void ft_remove_redirection(char *cmd_str)
i++; i++;
if (ft_is_in("<>", cmd_str[i])) if (ft_is_in("<>", cmd_str[i]))
start = i; start = i;
if (start == -1)
continue ;
while (cmd_str[i] == cmd_str[start]) while (cmd_str[i] == cmd_str[start])
i++; i++;
i++; i++;

1
t
View File

@ -1 +0,0 @@
bozo