mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(exec/redirections): did not correctly restore fds when executing builtins
This caused redirections to keep stdout redirected to the outfile, which caused problems with displaying the prmpt. The shell hangs, but exits with C-d Builtins affected: echo hi > outfile pwd > outfile env > outfile
This commit is contained in:
parent
1499eaa985
commit
2ae001e00b
3 changed files with 23 additions and 21 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/03/31 14:16:13 by khais #+# #+# */
|
||||
/* Updated: 2025/04/16 16:57:16 by khais ### ########.fr */
|
||||
/* Updated: 2025/04/18 14:03:06 by khais ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -25,7 +25,6 @@ t_builtin_type builtin_env(t_simple_cmd *cmd, t_minishell *app);
|
|||
t_builtin_type builtin_unset(t_simple_cmd *cmd, t_minishell *app);
|
||||
|
||||
t_builtin_type get_builtin(t_simple_cmd *cmd);
|
||||
t_builtin_type execute_builtin(t_simple_cmd *cmd, t_minishell *app,
|
||||
bool should_exit);
|
||||
t_builtin_type execute_builtin(t_simple_cmd *cmd, t_minishell *app);
|
||||
|
||||
#endif // BUILTINS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue