✏️」 norm: normed project.

This commit is contained in:
y-syo
2024-08-14 10:19:08 +02:00
parent 1bf5d83586
commit 15d93d507d
2 changed files with 4 additions and 6 deletions

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/20 20:25:06 by adjoly #+# #+# */
/* Updated: 2024/07/16 14:32:44 by adjoly ### ########.fr */
/* Updated: 2024/08/14 10:17:33 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
@ -23,7 +23,7 @@
# define ERROR_NO_EOF "need delimiter to heredoc"
# define ERROR_NO_FILE "No such file or directory"
# define ERROR_CMD_PIPE "No command after pipe"
# define ERROR_NO_CMD "command not found"
# define ERROR_NO_CMD "minishell : command not found: "
# define ERROR_COREDUMP "(core dumped)"

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/01 14:55:06 by mmoussou #+# #+# */
/* Updated: 2024/08/14 07:45:57 by mmoussou ### ########.fr */
/* Updated: 2024/08/14 10:18:44 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
@ -32,9 +32,7 @@ int exec_fork_cmd(t_cmd *cmd, char **env, t_env *env_t, int pipe_fd[2])
if (exec.status == -1 || !input || check_file(cmd->cmd, input))
{
if (exec.status == -1)
get_exit_code(127);
if (exec.status == -1)
printf("minishell : command not found: %s\n", input);
ft_printf("%s%s\n", ERROR_NO_CMD, input, get_exit_code(127));
free(input);
return (-1);
}