aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-09 18:24:53 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-09 18:24:53 +0200
commitc8c72449733f064f86b8a7c0b1284b6196fff0e3 (patch)
treee347b900dd39c7518c37564058494ab8a0a59e23 /src/main.c
parent4238485a4e26a9d15541708bfc38bfede9bbe7d2 (diff)
downloadminishell-c8c72449733f064f86b8a7c0b1284b6196fff0e3.tar.gz
minishell-c8c72449733f064f86b8a7c0b1284b6196fff0e3.tar.bz2
minishell-c8c72449733f064f86b8a7c0b1284b6196fff0e3.zip
Re Added cmd variable
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 6a0d36a..17dee77 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,7 +6,7 @@
/* By: cacharle <cacharle@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/28 11:45:44 by cacharle #+# #+# */
-/* Updated: 2020/09/09 14:20:41 by charles ### ########.fr */
+/* Updated: 2020/09/09 16:19:00 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -31,7 +31,6 @@ void tok_lst_debug(t_tok_lst *tokens);
** $?
** concurrent pipeline
** cmd variable preprocess
-** PATH with no permission, link and other file system fun stuff
** signal on whole line instead of single command
** env local to current minishell process
*/
@@ -115,7 +114,7 @@ int main(int argc, char **argv, char **envp)
char *line;
print_prompt();
- while ((ret = ft_getline(STDOUT_FILENO, &line)) == FTGL_OK)
+ while ((ret = ft_getline(STDIN_FILENO, &line)) == FTGL_OK)
{
if (*line == '\0')
{