🔨」 fix: quote fixed

This commit is contained in:
2024-07-15 14:27:43 +02:00
parent 27ac717f67
commit 17bb4ce14e
4 changed files with 51 additions and 14 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/25 15:06:15 by adjoly #+# #+# */
/* Updated: 2024/07/14 17:25:25 by adjoly ### ########.fr */
/* Updated: 2024/07/15 14:12:50 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -27,8 +27,6 @@ t_redirection *__to_redir(char *redir_s)
while (*redir_s && *redir_s == ' ')
redir_s++;
tmp = redir_s;
// if (*tmp == '/' || *tmp == '.')
// return (redir);
if (!ft_isalnum(*tmp) && *tmp != '/' && *tmp != '.')
return (redir);
while (*tmp && ft_isalnum(*tmp) && *tmp != '/' && *tmp != '.')