echo builtin

+ WIP grammar rules in parsing.txt
+ test trop_de_pipes.sh
This commit is contained in:
LuckyLaszlo
2021-10-22 10:53:06 +02:00
parent 1054f3d6ff
commit 39de10e001
10 changed files with 241 additions and 59 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */
/* Updated: 2021/10/19 19:55:08 by lperrey ### ########.fr */
/* Updated: 2021/10/22 10:41:34 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -19,9 +19,13 @@ int init(t_all *c, char *envp[]);
// Lexer
t_token *input_to_tokens(char *input);
// Shell loop
void shell_loop(t_all *c);
// Builtins
int builtin_env(int argc, char *argv[], t_all *c);
int builtin_exit(int argc, char *argv[], t_all *c);
int builtin_echo(int argc, char *argv[], t_all *c);
// Free
int free_exit(t_all *c, int exit_status);
@@ -31,5 +35,6 @@ char *ft_strjoinfree(char *s1, char *s2);
char *ft_strjoinfree_s1(char *s1, const char *s2);
char *ft_strjoinfree_s2(const char *s1, char *s2);
void ft_lstprint(t_list *lst, int fd);
int ft_isinset_str(char *str, char *set);
#endif

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/10 03:36:37 by lperrey #+# #+# */
/* Updated: 2021/10/10 20:58:28 by lperrey ### ########.fr */
/* Updated: 2021/10/19 20:30:34 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,7 +15,7 @@
# include "minishell_macro.h"
# define U_PROMPT_END PROMPT_EURO
# define U_PROMPT_END PROMPT_CHEVRON
# define U_DEFAULT_USER "NoUser"
# define U_DEFAULT_NAME "NoName"