diff --git a/builtins/cd.c b/builtins/cd.c index b621fcd..a3a34ef 100644 --- a/builtins/cd.c +++ b/builtins/cd.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/20 14:27:36 by erey-bet #+# #+# */ -/* Updated: 2023/03/09 20:13:05 by erey-bet ### ########.fr */ +/* Updated: 2023/03/13 13:26:08 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -24,7 +24,7 @@ int make_move(char *path, int fd) return (0); } free(join); - write(2, "No suck file or directory", 25); + write(2, "No such file or directory\n", 26); return (1); } @@ -34,7 +34,7 @@ int move_folder(char **args, int fd) if (args[1] != NULL) { - write(2, "cd: too many argument", 22); + write(2, "cd: too many argument\n", 22); return (1); } path = args[0]; @@ -42,7 +42,7 @@ int move_folder(char **args, int fd) { if (chdir(path) == 0) return (0); - write(2, "No suck file or directory", 25); + write(2, "No such file or directory\n", 26); return (1); } else diff --git a/builtins/export.c b/builtins/export.c index d2486c0..f3ff510 100644 --- a/builtins/export.c +++ b/builtins/export.c @@ -6,7 +6,7 @@ /* By: cchauvet