aboutsummaryrefslogtreecommitdiff
path: root/src/repl.c
diff options
context:
space:
mode:
authorDominik Kaiser2025-01-20 18:49:32 +0100
committerGitHub2025-01-20 18:49:32 +0100
commit63a78c5ecea8acf1d8d7096bc693f4b489c3aab4 (patch)
treeb257a3786ded25e3d1bd9b1071a85cd3b6fe9f60 /src/repl.c
parent9fa887da20e409c2f25fac44b57f999e508a30ea (diff)
parentee1ea5ebfd335580cae3f05c814887547e10ac2b (diff)
downloadminishell-63a78c5ecea8acf1d8d7096bc693f4b489c3aab4.tar.gz
minishell-63a78c5ecea8acf1d8d7096bc693f4b489c3aab4.zip
Merge pull request #31 from dpu-kaiser/some-fixes
Some fixes
Diffstat (limited to 'src/repl.c')
-rw-r--r--src/repl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/repl.c b/src/repl.c
index 15b0a80..16c8e95 100644
--- a/src/repl.c
+++ b/src/repl.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/24 16:07:04 by dkaiser #+# #+# */
-/* Updated: 2025/01/20 12:45:00 by chuhlig ### ########.fr */
+/* Updated: 2025/01/20 17:58:43 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -23,7 +23,7 @@ void repl(const char *prompt, t_env **env, int *promptflag)
while (1)
{
input = readline(prompt);
- if (input == NULL)
+ if (input == NULL)
{
if (*promptflag > 1)
(*promptflag)--;
@@ -41,5 +41,3 @@ void repl(const char *prompt, t_env **env, int *promptflag)
free(input);
}
}
-
-//echo hi | >./outfiles/outfile01 echo bye >./test_files/invalid_permission \ No newline at end of file