debug: show command about to be executed in debug mode

This commit is contained in:
Khaïs COLIN 2025-04-08 16:18:57 +02:00
parent 204ed35ff4
commit 81febcfcdd
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
8 changed files with 65 additions and 3 deletions

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/27 16:21:56 by khais #+# #+# */
/* Updated: 2025/04/07 17:56:56 by khais ### ########.fr */
/* Updated: 2025/04/08 16:12:36 by khais ### ########.fr */
/* */
/* ************************************************************************** */
@ -25,6 +25,7 @@
#include "../../postprocess/expansion/expand_vars.h"
#include "../../postprocess/fieldsplit/fieldsplit.h"
#include "../../postprocess/expansion/expand_wildcard.h"
#include "simple_cmd_execute_debug.h"
static void command_not_found(t_simple_cmd *cmd)
{
@ -91,6 +92,7 @@ void simple_cmd_execute(t_simple_cmd *cmd, t_minishell *app)
return ;
if (post_process_command(cmd, app) == NULL)
return ;
simple_cmd_execute_debug(cmd, app);
if (handle_redirections(cmd, app) == NULL)
return ;
if (execute_builtin(cmd, app) != BUILTIN_INVALID)