Closed marimlem closed 3 months ago
AHA:
<< o
> newfile
rdr without command will do rdr, but need to be exited out of execution loop manually. at the moment they get stuck in the fork and just go back to the minishell loop, not triggering any error message or encountering any exit statement. (the error is not related to exit or ctrl functionality)
fixed by adding a check before execve if current->arg[0]==NULL
have to exit twice even though just opened once ????
====
lknobloc@c3r6p6:~/Documents/minishell$ make v valgrind --suppressions=supp.supp --track-origins=yes --leak-check=full --show-leak-kinds=all ./minishell ==2319821== Memcheck, a memory error detector ==2319821== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2319821== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==2319821== Command: ./minishell ==2319821== minishell:$ << o