![]() |
Livl Shell
0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
|
File containing the command functions to manage the commands entered by the user (parsing, evaluation, etc.). More...
#include "typedef.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include "utils.h"#include "alias.h"

Go to the source code of this file.
Functions | |
| Command | evaluate_command (const char *input) |
| Evaluate a command from a string. More... | |
| void | free_command (Command *cmd) |
| Free a command. More... | |
| void | get_complete_command_array (Command *cmd) |
| Get the complete command (command + arguments) as a string. More... | |
| void | init_command (Command *cmd) |
| Initialize a command. More... | |
File containing the command functions to manage the commands entered by the user (parsing, evaluation, etc.).
| Command evaluate_command | ( | const char * | input | ) |
Evaluate a command from a string.
| input | the string to evaluate |
| void free_command | ( | Command * | cmd | ) |
Free a command.
| cmd | the command to free |
| void get_complete_command_array | ( | Command * | cmd | ) |
Get the complete command (command + arguments) as a string.
It is useful for execvp(const char* command, char* argv[])
| cmd | the command to get |
| void init_command | ( | Command * | cmd | ) |
Initialize a command.
| cmd | the command to initialize |
1.8.17