aboutsummaryrefslogtreecommitdiff
path: root/src/get_cmd_path.c
diff options
context:
space:
mode:
authorDominik Kaiser2025-01-20 13:07:11 +0100
committerDominik Kaiser2025-01-20 13:07:11 +0100
commitaf9d1a9b39daaf1b86cf94ee629e06503d8ab6d4 (patch)
tree7dc6e0a33c093a5e2759061056a8b5b393d5fc0b /src/get_cmd_path.c
parent3392f2b811269f174620832d663b09ef4f4e43f3 (diff)
downloadminishell-af9d1a9b39daaf1b86cf94ee629e06503d8ab6d4.tar.gz
minishell-af9d1a9b39daaf1b86cf94ee629e06503d8ab6d4.zip
Fix some bugs
Diffstat (limited to 'src/get_cmd_path.c')
-rw-r--r--src/get_cmd_path.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/get_cmd_path.c b/src/get_cmd_path.c
index 543540b..e005af1 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/15 16:38:39 by dkaiser ### ########.fr */
+/* Updated: 2025/01/20 12:52:00 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -85,8 +85,9 @@ static char *find_in_path(char *cmd, t_env *env, int *return_code)
path++;
}
*return_code = 127;
- printf("%s:", cmd);
+ ft_printf("%s:", cmd);
ft_putstr_fd(" command not found", 2);
+ ft_printf("\n");
return (NULL);
}