diff options
| author | Dominik Kaiser | 2025-01-20 18:49:32 +0100 |
|---|---|---|
| committer | GitHub | 2025-01-20 18:49:32 +0100 |
| commit | 63a78c5ecea8acf1d8d7096bc693f4b489c3aab4 (patch) | |
| tree | b257a3786ded25e3d1bd9b1071a85cd3b6fe9f60 /src/get_cmd_path.c | |
| parent | 9fa887da20e409c2f25fac44b57f999e508a30ea (diff) | |
| parent | ee1ea5ebfd335580cae3f05c814887547e10ac2b (diff) | |
| download | minishell-63a78c5ecea8acf1d8d7096bc693f4b489c3aab4.tar.gz minishell-63a78c5ecea8acf1d8d7096bc693f4b489c3aab4.zip | |
Merge pull request #31 from dpu-kaiser/some-fixes
Some fixes
Diffstat (limited to 'src/get_cmd_path.c')
| -rw-r--r-- | src/get_cmd_path.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/get_cmd_path.c b/src/get_cmd_path.c index e005af1..70043a7 100644 --- a/src/get_cmd_path.c +++ b/src/get_cmd_path.c @@ -6,7 +6,7 @@ /* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/12/17 19:19:59 by chuhlig #+# #+# */ -/* Updated: 2025/01/20 12:52:00 by dkaiser ### ########.fr */ +/* Updated: 2025/01/20 18:12:33 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -85,9 +85,7 @@ static char *find_in_path(char *cmd, t_env *env, int *return_code) path++; } *return_code = 127; - ft_printf("%s:", cmd); - ft_putstr_fd(" command not found", 2); - ft_printf("\n"); + command_not_found_error(cmd); return (NULL); } |
