Skip to content

Commit

Permalink
Merge branch 'facetint' of https://github.com/facetint/minishell into…
Browse files Browse the repository at this point in the history
… facetint
  • Loading branch information
facetint committed Mar 8, 2024
2 parents 69c431d + 7f2f90c commit bcc4158
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ a.out
idea/
.idea/
.vscode/
.DS_Store
2 changes: 1 addition & 1 deletion builtin/builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: facetint <facetint@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/03 13:04:26 by facetint #+# #+# */
/* Updated: 2024/03/08 15:22:04 by facetint ### ########.fr */
/* Updated: 2024/03/08 17:41:46 by facetint ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
10 changes: 4 additions & 6 deletions env/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: facetint <facetint@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/27 19:05:06 by facetint #+# #+# */
/* Updated: 2024/03/08 16:59:25 by facetint ### ########.fr */
/* Updated: 2024/03/08 17:41:51 by facetint ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -48,7 +48,7 @@ t_envList *push_list(char *key, char *value, t_envList *begin)
if (begin)
return (add_list(key, value, begin));
else
return (create_list(key, value));
return (create_list(key, value));
}
t_envList *make_list(char **env)
{
Expand All @@ -58,6 +58,7 @@ t_envList *make_list(char **env)
char *value;

i = 0;
lst = NULL;
while (env[i])
{
key = strdup_n(env[i], '=');
Expand Down Expand Up @@ -93,12 +94,9 @@ char **make_arr(t_envList *lst)
}
void print_list(t_envList *lst)
{
t_envList *last = NULL;
while (lst)
while (lst)
{
printf("%s=%s\n", lst->key, lst->value);
last = lst;
lst = lst->next;
}
}

2 changes: 1 addition & 1 deletion execute/execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: facetint <facetint@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/17 17:34:07 by facetint #+# #+# */
/* Updated: 2024/03/08 17:14:12 by facetint ### ########.fr */
/* Updated: 2024/03/08 17:42:07 by facetint ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
2 changes: 1 addition & 1 deletion handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: facetint <facetint@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/03 13:17:46 by facetint #+# #+# */
/* Updated: 2024/03/08 17:06:21 by facetint ### ########.fr */
/* Updated: 2024/03/08 17:41:38 by facetint ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
Empty file removed test
Empty file.

0 comments on commit bcc4158

Please sign in to comment.