Skip to content

Commit

Permalink
fix: replace the terminal press with stderr for the export error mess…
Browse files Browse the repository at this point in the history
…age problem
  • Loading branch information
facetint committed Apr 1, 2024
1 parent 1b662ae commit b3f9e70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/builtin/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* export.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hcoskun <hcoskun@student.42.fr> +#+ +:+ +#+ */
/* By: facetint <facetint@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/03 18:01:40 by facetint #+# #+# */
/* Updated: 2024/03/31 15:02:16 by hcoskun ### ########.fr */
/* Updated: 2024/04/01 15:26:59 by facetint ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -88,9 +88,9 @@ void builtin_export(t_command *cmd, int fd[2])
export_env(cmd->args[i]);
else
{
ft_putstr_fd("minishell: export: `", fd[1]);
ft_putstr_fd(cmd->args[i], fd[1]);
ft_putstr_fd("': not a valid identifier\n", fd[1]);
ft_putstr_fd("minishell: export: `", 2);
ft_putstr_fd(cmd->args[i], 2);
ft_putstr_fd("': not a valid identifier\n", 2);
*get_exit_status() = 1;
}
i++;
Expand Down

0 comments on commit b3f9e70

Please sign in to comment.