This commit is contained in:
Loic Deridder
2025-02-05 15:49:23 +01:00
parent 2369795bd2
commit e84be699eb
7 changed files with 110 additions and 80 deletions

View File

@@ -6,7 +6,7 @@
/* By: lderidde <lderidde@student.s19.be> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/28 09:01:33 by lderidde #+# #+# */
/* Updated: 2025/02/03 14:05:25 by lderidde ### ########.fr */
/* Updated: 2025/02/05 11:50:47 by lderidde ### ########.fr */
/* */
/* ************************************************************************** */
@@ -25,7 +25,7 @@
# define EXPRT_INV "not a valid identifier"
// void echo(char *msg, int flag);
int builtin_echo(char **arg, char **envp);
int builtin_echo(t_ast_n *node, char **envp);
int builtin_exit(char **arg, bool depth, t_ast_n *node);
int builtin_pwd(char **arg);
int builtin_env(char **arg, char **envp);

View File

@@ -6,14 +6,14 @@
/* By: lderidde <lderidde@student.s19.be> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/27 11:25:25 by lderidde #+# #+# */
/* Updated: 2025/02/03 13:45:35 by lderidde ### ########.fr */
/* Updated: 2025/02/05 09:55:28 by lderidde ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINISHELL_H
# define MINISHELL_H
# define DEBUG 1
# define DEBUG 0
typedef struct s_ast_n t_ast_n;
typedef struct s_node t_node;

View File

@@ -6,7 +6,7 @@
/* By: lderidde <lderidde@student.s19.be> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/24 08:23:27 by lderidde #+# #+# */
/* Updated: 2025/02/04 15:55:59 by lderidde ### ########.fr */
/* Updated: 2025/02/05 13:45:47 by lderidde ### ########.fr */
/* */
/* ************************************************************************** */
@@ -48,7 +48,8 @@ typedef struct s_ast_n
int fds[2];
int _stdout;
int _stdin;
int save_std;
int save_stdo;
int save_stdi;
t_redir *redir;
char *input;
char **files;