ajout option log et ignore comments in tests

This commit is contained in:
hugogogo
2021-12-03 11:22:24 +01:00
parent 294a818924
commit 6ac25b11ae
10 changed files with 538 additions and 53 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/04 05:59:26 by lperrey #+# #+# */
/* Updated: 2021/12/02 17:11:55 by hulamy ### ########.fr */
/* Updated: 2021/12/03 07:06:35 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -23,8 +23,8 @@ void shell_loop(t_all *c)
{
if (line_input)
free(line_input);
// write(2, c->prompt, ft_strlen(c->prompt));
// rl_already_prompted = 1;
write(2, c->prompt, ft_strlen(c->prompt));
rl_already_prompted = 1;
// line_input = read_input(NULL, c);
line_input = read_input(c->prompt, c);
if (line_input && *line_input)