42sh 1.0.0
Create a shell in C
|
The file containing the alias functions. More...
#include "../../include/myshell.h"
Functions | |
void | print_alias (mysh_t *mysh, char *alias) |
Search the alias in the list and print the value. | |
int | display_alias (mysh_t *mysh) |
Check if the alias has an error. | |
int | replace_alias (mysh_t *mysh) |
Replace the alias if it already exists. | |
void | add_alias (mysh_t *mysh) |
Add an alias to the list. | |
int | exec_alias (mysh_t *mysh) |
The alias builtin. | |
The file containing the alias functions.
void add_alias | ( | mysh_t * | mysh | ) |
Add an alias to the list.
mysh | The shell structure |
int display_alias | ( | mysh_t * | mysh | ) |
Check if the alias has an error.
mysh | The shell structure |
alias | The alias structure |
int exec_alias | ( | mysh_t * | mysh | ) |
The alias builtin.
mysh | The shell structure |
void print_alias | ( | mysh_t * | mysh, |
char * | alias ) |
Search the alias in the list and print the value.
mysh | The shell structure |
alias | The alias name to search |
int replace_alias | ( | mysh_t * | mysh | ) |
Replace the alias if it already exists.
mysh | The shell structure |
alias | The alias structure |