fixed all problems
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */
|
/* 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 */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/04/24 10:46:28 by marde-vr #+# #+# */
|
/* 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->in_type = 0;
|
||||||
msh->out_type = 0;
|
msh->out_type = 0;
|
||||||
|
msh->in_fd = 0;
|
||||||
|
msh->out_fd = 0;
|
||||||
if (first_is_in_type(cmds))
|
if (first_is_in_type(cmds))
|
||||||
{
|
{
|
||||||
if (!get_in_type(msh, cmds, cmds, 1))
|
if (!get_in_type(msh, cmds, cmds, 1))
|
||||||
|
4
todo
4
todo
@ -1,9 +1,9 @@
|
|||||||
- cat < Makefile | rev | cat -e | rev | cat
|
(()) leaks when exit
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
probably repaired:
|
probably repaired:
|
||||||
|
|
||||||
|
- cat < Makefile | rev | cat -e | rev | cat
|
||||||
- cat Makefile | commandnotfound | cat
|
- cat Makefile | commandnotfound | cat
|
||||||
- .. # (pas de command not found)
|
- .. # (pas de command not found)
|
||||||
- echo -nnn -n -nnnnnn aaa -nn # (invalid write/read)
|
- echo -nnn -n -nnnnnn aaa -nn # (invalid write/read)
|
||||||
|
Reference in New Issue
Block a user