fix + norm
This commit is contained in:
@@ -92,11 +92,9 @@ int ifhere_remove_quote(t_ast_n *node, int j)
|
||||
void read_input(t_ast_n *node, int j)
|
||||
{
|
||||
char *str;
|
||||
// int len;
|
||||
int check;
|
||||
|
||||
check = ifhere_remove_quote(node, j);
|
||||
// len = ft_strlen(node->files[j]);
|
||||
str = get_next_line(node->msh->here_fd, 0);
|
||||
while (str && ft_strncmp(str, node->files[j], ft_strlen(str) - 1) != 0)
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ int handle_file(t_ast_n *node, int check, int i)
|
||||
{
|
||||
int fd;
|
||||
|
||||
fd = 0;
|
||||
if (check == 1 && access(node->files[i], F_OK))
|
||||
{
|
||||
ft_fprintf(2, "%s: %s\n", node->files[i], "No such file or directory");
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: lderidde <lderidde@student.s19.be> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/12 09:57:39 by lderidde #+# #+# */
|
||||
/* Updated: 2025/02/12 13:30:44 by lderidde ### ########.fr */
|
||||
/* Updated: 2025/02/15 09:22:23 by lderidde ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -68,6 +68,7 @@ char *execextract_env(char *str, char **envp)
|
||||
char *tmp;
|
||||
|
||||
i = 1;
|
||||
tmp = NULL;
|
||||
while (str[i] && execis_validchar(str[i]))
|
||||
i++;
|
||||
if (i > 1)
|
||||
|
||||
Reference in New Issue
Block a user