general improvement

This commit is contained in:
gazhonsepaskwa
2025-02-10 14:54:00 +01:00
parent a79227453c
commit 48f4576179
13 changed files with 255 additions and 102 deletions

View File

@@ -30,8 +30,11 @@ static char **ft_setnewenv(void)
t_msh *init_msh(char **envp)
{
t_msh *msh;
int fd;
msh = malloc(sizeof(t_msh) * 1);
fd = open(".heredoc", O_WRONLY | O_CREAT | O_TRUNC, 0666);
close(fd);
msh->hist = open(".mmoat_history", O_RDWR | O_CREAT | O_APPEND, 0666);
msh->ex_code = 0;
msh->input = NULL;