maxishell
Implementation of a shell for Linux-like systems
|
#include "tokens.h"
#include "shell.h"
#include "redirection.h"
#include "execute.h"
#include "pipe.h"
#include <sys/wait.h>
Go to the source code of this file.
Functions | |
static int | open_and_redirect (t_ast *node, t_ms_data *data) |
redirect out ">" to the file output | |
int | redirect_out (t_ast *node, t_ms_data *data) |
redirect out ">" to the file output
--
node | current node in the AST |
data | minishell data structure |
Definition at line 33 of file redirect_out.c.
References EXIT_FAILURE, EXIT_SUCCESS, open_file(), s_ast::right, and s_ms_data::std_out.
Referenced by redirect_out().
Definition at line 54 of file redirect_out.c.
References execute_ast(), EXIT_FAILURE, s_ast::left, and open_and_redirect().
Referenced by execute_ast().