aboutsummaryrefslogtreecommitdiff
path: root/src/repl.c
diff options
context:
space:
mode:
authorDominik Kaiser2025-01-20 18:46:39 +0100
committerGitHub2025-01-20 18:46:39 +0100
commit9fa887da20e409c2f25fac44b57f999e508a30ea (patch)
tree7e3fee3edea18d0d81abddb89104858cfc0ec5e3 /src/repl.c
parentaf9d1a9b39daaf1b86cf94ee629e06503d8ab6d4 (diff)
parent62845ce01f222fad126372c574c7ab084478adf0 (diff)
downloadminishell-9fa887da20e409c2f25fac44b57f999e508a30ea.tar.gz
minishell-9fa887da20e409c2f25fac44b57f999e508a30ea.zip
Merge pull request #30 from dpu-kaiser/merge_format_redir
Merge format redir
Diffstat (limited to 'src/repl.c')
-rw-r--r--src/repl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/repl.c b/src/repl.c
index 5079ee8..15b0a80 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/14 15:39:58 by chuhlig ### ########.fr */
+/* Updated: 2025/01/20 12:45:00 by chuhlig ### ########.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,3 +41,5 @@ 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