marimlem / minishell

0 stars 0 forks source link

single rdr #20

Closed marimlem closed 3 months ago

marimlem commented 3 months ago

make single rdr happen > o creates file o, error message "command not found"

marimlem commented 3 months ago

after removing the if conditions in main.c execve segfaulted (trying to find com->file), then putstr segfaulted (trying to find com->arg[0]

FIXED by strduping "" to com->file if previously NULL and string protecting execve fail