fixed all problems

This commit is contained in:
mdev9
2024-04-30 14:50:58 +02:00
parent f67d334503
commit f661232c77
3 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */
/* Updated: 2024/04/30 14:00:36 by marde-vr ### ########.fr */
/* Updated: 2024/04/30 14:42:26 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/24 10:46:28 by marde-vr #+# #+# */
/* Updated: 2024/04/24 14:05:18 by tomoron ### ########.fr */
/* Updated: 2024/04/30 14:41:48 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,6 +16,8 @@ void get_redirections(t_msh *msh, t_cmd *cmds)
{
msh->in_type = 0;
msh->out_type = 0;
msh->in_fd = 0;
msh->out_fd = 0;
if (first_is_in_type(cmds))
{
if (!get_in_type(msh, cmds, cmds, 1))

4
todo
View File

@ -1,9 +1,9 @@
- cat < Makefile | rev | cat -e | rev | cat
(()) leaks when exit
probably repaired:
- cat < Makefile | rev | cat -e | rev | cat
- cat Makefile | commandnotfound | cat
- .. # (pas de command not found)
- echo -nnn -n -nnnnnn aaa -nn # (invalid write/read)