/* By: ljiriste <ljiriste@student.42prague.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/21 08:57:54 by ljiriste #+# #+# */
-/* Updated: 2024/08/01 09:47:44 by ljiriste ### ########.fr */
+/* Updated: 2024/08/01 09:51:23 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
expand = !ft_strcmp(unquoted_delimiter, delimiter);
ft_printf("> ");
line = get_next_line(STDIN_FILENO);
- while (line && ft_strcmp(line, unquoted_delimiter))
+ while (line && ft_strncmp(line, unquoted_delimiter, ft_strlen(line) - 1))
{
if (write_line_to_pipe(pipe_fd, line, env, expand))
{