fix: prompt was not being requested to hashmap

This commit is contained in:
2026-02-14 02:05:49 +01:00
parent c95703b42b
commit 32b3bd72b5

View File

@@ -6,7 +6,7 @@
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/20 20:51:33 by sede-san #+# #+# */
/* Updated: 2026/02/14 01:58:39 by sede-san ### ########.fr */
/* Updated: 2026/02/14 02:03:47 by sede-san ### ########.fr */
/* */
/* ************************************************************************** */
@@ -39,7 +39,7 @@ void minishell_run(
while (!minishell->exit)
{
if (isatty(STDIN_FILENO))
line = readline(DEFAULT_PS1);
line = readline(get_var("PS1", minishell));
else
line = get_next_line(STDIN_FILENO);
handle_sigint_status(minishell);