summaryrefslogtreecommitdiffstats
path: root/src/f_com.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/f_com.c')
-rw-r--r--src/f_com.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/f_com.c b/src/f_com.c
index 5ca03eb..7285205 100644
--- a/src/f_com.c
+++ b/src/f_com.c
@@ -17,8 +17,9 @@
#include "s_struct.h"
void
- f_fail_command_not_found(const char command[])
+ f_fail_command_not_found(const char command[], t_msh *msh)
{
ft_dprintf(STDERR_FILENO, "%s: %s: %s\n", "minishell", command,
FT_FAIL_COMMAND_NOT_FOUND);
+ msh->ret = 127;
}