mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-14 19:06:50 +01:00
「✏️」 norm: normed project.
This commit is contained in:
@ -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)"
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user