From 6e456095fce214a2eadea0cafa3fa7ea1113b4e6 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 19 Jul 2020 19:27:52 +0200 Subject: Added errof for cleaner error message, Removed previous error functions --- src/builtin/export.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/builtin/export.c') diff --git a/src/builtin/export.c b/src/builtin/export.c index 809b809..6fbb88f 100644 --- a/src/builtin/export.c +++ b/src/builtin/export.c @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:11:34 by charles #+# #+# */ -/* Updated: 2020/07/15 13:22:18 by charles ### ########.fr */ +/* Updated: 2020/07/19 18:46:48 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -21,6 +21,7 @@ static void st_put_declare_x(char *s) { char *equal_ptr; + // could use errorf on stdout if (s == NULL) return ; ft_putstr("declare -x "); @@ -57,7 +58,7 @@ int builtin_export(char **argv, t_env env) { if (!skip) *equal_ptr = '='; - error_put_invalid_identifier("export", argv[i]); + errorf("export: `%s': not a valid identifier\n", argv[i]); status = 1; continue; } -- cgit