mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 03:16:51 +01:00
「🔨」 fix: fixed some things.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/07/03 16:34:19 by adjoly #+# #+# */
|
||||
/* Updated: 2024/07/14 17:30:41 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/07/18 17:15:01 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -32,8 +32,6 @@ bool check_argv(t_list *token)
|
||||
tmp = token;
|
||||
while (tmp)
|
||||
{
|
||||
if (!((t_token *)tmp->content)->argv)
|
||||
return (send_error_parsing(ERROR_NO_CMD));
|
||||
if (check_file_name(((t_token *)tmp->content)->redirection))
|
||||
return (send_error_parsing(ERROR_NO_FILE));
|
||||
tmp = tmp->next;
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/07/18 13:30:27 by adjoly #+# #+# */
|
||||
/* Updated: 2024/07/18 17:03:08 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/07/18 17:13:11 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -19,8 +19,6 @@ bool run_checks(char *rl)
|
||||
{
|
||||
if (!*rl)
|
||||
return (true);
|
||||
// if (check_space(rl))
|
||||
//return (true);
|
||||
add_history(rl);
|
||||
if (check_syntax(rl))
|
||||
return (true);
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/06/05 13:48:57 by adjoly #+# #+# */
|
||||
/* Updated: 2024/07/06 15:04:35 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/07/18 17:15:48 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -64,6 +64,8 @@ char **split_argv(char *readline)
|
||||
char *tmp;
|
||||
|
||||
tmp = readline;
|
||||
if (!readline || !*readline)
|
||||
return (NULL);
|
||||
argv = ft_calloc(__count_args(readline) + 1, sizeof(char *));
|
||||
tmp_av = argv;
|
||||
while (*tmp)
|
||||
|
Reference in New Issue
Block a user