![]() |
Livl Shell
0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
|
File containing the redirection functions to manage the redirection operators such as '<', '<<', '>', '>>' and '|'. More...
#include "typedef.h"#include <fcntl.h>#include <sys/stat.h>#include <stdio.h>#include <unistd.h>#include <string.h>#include <stdlib.h>#include <sys/wait.h>

Go to the source code of this file.
Functions | |
| void | handle_input_redirection (const Command *command) |
| Handles input redirection with '<' operator with '<<' operator. More... | |
| void | handle_output_redirection (const Command *command) |
| Handles output redirection with '>' operator with '>>' operator. More... | |
| void | evaluate_redirection (CommandSequence *sequence) |
| Evaluate if a command sequence contains stream redirection operators. More... | |
| void | execute_pipe (Command *cmd1, Command *cmd2) |
| Execute a command with pipe operator. More... | |
| int | is_redirection_command (const Command *command) |
| Evaluate if a command is a stream redirection command. More... | |
File containing the redirection functions to manage the redirection operators such as '<', '<<', '>', '>>' and '|'.
| void evaluate_redirection | ( | CommandSequence * | sequence | ) |
Evaluate if a command sequence contains stream redirection operators.
| sequence | The command sequence to evaluate |
Execute a command with pipe operator.
| cmd1 | The first command |
| cmd2 | The second command |
| void handle_input_redirection | ( | const Command * | command | ) |
Handles input redirection with '<' operator with '<<' operator.
| command | Command to be check for input redirection |
| void handle_output_redirection | ( | const Command * | command | ) |
Handles output redirection with '>' operator with '>>' operator.
| command | Command to be check for output redirection |
| int is_redirection_command | ( | const Command * | command | ) |
Evaluate if a command is a stream redirection command.
| command | The command to evaluate |
1.8.17