diff options
| author | Dominik Kaiser | 2025-11-12 14:29:55 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-11-12 14:29:55 +0100 |
| commit | 851968359252a8ef189e58c9ab80ad2caa0f714c (patch) | |
| tree | b1dcb1b9acbd0769fd2a84229349844508061693 /src | |
| parent | 3b97eaa0500314866c4a106c77e8f671c9751b89 (diff) | |
| download | minishell-851968359252a8ef189e58c9ab80ad2caa0f714c.tar.gz minishell-851968359252a8ef189e58c9ab80ad2caa0f714c.zip | |
Make runnable on linux
Diffstat (limited to 'src')
| -rw-r--r-- | src/execute_cmd.c | 1 | ||||
| -rw-r--r-- | src/main.c | 2 | ||||
| -rw-r--r-- | src/repl.c | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/src/execute_cmd.c b/src/execute_cmd.c index adfcb37..2d8878b 100644 --- a/src/execute_cmd.c +++ b/src/execute_cmd.c @@ -13,6 +13,7 @@ #include "minishell.h" #include <stdio.h> #include <stdlib.h> +#include <wait.h> static void establish_pipeline(int original_stdin, int original_stdout); static int exec_cmd(t_cmd *cmd, t_env **env, int original_std[2], int result); @@ -15,10 +15,8 @@ int main(int argc, char *argv[], char *envp[]) { t_env *env; - static int promptflag; env = NULL; - promptflag = 0; if (!argc && !argv) return (1); if (init()) @@ -26,7 +26,6 @@ void repl(const char *prompt, t_env **env) t_token *token_list; t_node *ast; - (*promptflag)++; while (1) { input = readline(prompt); |
