Skip to content

Commit

Permalink
Merge pull request #551 from biralavor/550-trying-to-improve-heredoc-…
Browse files Browse the repository at this point in the history
…passing-tests

adding exit status code on HereDoc when Success
  • Loading branch information
biralavor authored Oct 10, 2024
2 parents b79e463 + c9f30e6 commit 228c169
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/02_parser/20.manage_heredoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: umeneses <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/12 18:23:53 by umeneses #+# #+# */
/* Updated: 2024/10/10 09:30:18 by umeneses ### ########.fr */
/* Updated: 2024/10/10 13:00:21 by umeneses ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -113,6 +113,8 @@ int check_delimiter(char *delimiter, int fd)
}
if (input == NULL && is_heredoc_running(false, true) && g_sigmonitor != SIGINT)
heredoc_forcing_exit_warning(input, delimiter, line, fd);
else
exit_status_holder(EXIT_SUCCESS, true);
if (input)
free(input);
return (0);
Expand Down

0 comments on commit 228c169

Please sign in to comment.