mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
Expansion: Norm recheck
This commit is contained in:
parent
a41f10eda3
commit
de53d2b8bc
3 changed files with 5 additions and 6 deletions
|
|
@ -55,4 +55,4 @@ t_wordlist *wordlist_get_elem(t_wordlist *list, int idx)
|
|||
if (list == NULL)
|
||||
return (NULL);
|
||||
return (list);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/23 15:02:59 by jguelen #+# #+# */
|
||||
/* Updated: 2025/03/10 17:08:25 by jguelen ### ########.fr */
|
||||
/* Updated: 2025/03/10 17:21:25 by jguelen ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -154,7 +154,7 @@ t_wordlist *expand_star(t_worddesc *file_pattern)
|
|||
tmp = replace_in_str(file_pattern->marker, i, i, NULL);
|
||||
free(file_pattern->marker);
|
||||
file_pattern->marker = tmp;
|
||||
continue;
|
||||
continue ;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/07 17:10:01 by jguelen #+# #+# */
|
||||
/* Updated: 2025/03/10 15:36:11 by jguelen ### ########.fr */
|
||||
/* Updated: 2025/03/10 17:22:00 by jguelen ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -142,10 +142,9 @@ int ispattern(t_worddesc *desc)
|
|||
{
|
||||
if ((desc->word[i] == '*' || desc->word[i] == '?')
|
||||
&& (desc->marker[i] != '\'' && desc->marker[i] != '"'
|
||||
&& desc->marker[i] != '&'))
|
||||
&& desc->marker[i] != '&'))
|
||||
return (1);
|
||||
i++;
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue