signals and termios WIP

+ shell script placeholder
+ generics functions
+ valgrind add_history() supp
+ misc
This commit is contained in:
LuckyLaszlo
2021-10-30 16:39:24 +02:00
parent 58ef5a4a03
commit ab2aa509df
16 changed files with 302 additions and 73 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/04 05:59:26 by lperrey #+# #+# */
/* Updated: 2021/10/22 10:33:00 by lperrey ### ########.fr */
/* Updated: 2021/10/29 01:59:04 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -19,7 +19,10 @@ int main(int argc, char *argv[], char *envp[])
(void)argc;
(void)argv;
if (!init(&c, envp))
exit(EXIT_FAILURE);
shell_loop(&c);
free_exit(&c, EXIT_FAILURE);
if (isatty(STDIN_FILENO))
shell_loop(&c);
else
shell_script(&c);
return (0);
}