summaryrefslogtreecommitdiffstats
path: root/src/f_com.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-15 18:25:16 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-15 18:25:16 +0200
commitc5f54ee19c5c5f35fa073564d7790816f56b1057 (patch)
treebc40b96aa5db1334dc4bb33661e1d1e527e4477c /src/f_com.c
parentError handling ok (diff)
download42-minishell-c5f54ee19c5c5f35fa073564d7790816f56b1057.tar.gz
42-minishell-c5f54ee19c5c5f35fa073564d7790816f56b1057.tar.bz2
42-minishell-c5f54ee19c5c5f35fa073564d7790816f56b1057.tar.xz
42-minishell-c5f54ee19c5c5f35fa073564d7790816f56b1057.tar.zst
42-minishell-c5f54ee19c5c5f35fa073564d7790816f56b1057.zip
Quick fix
Diffstat (limited to '')
-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;
}