42sh 1.0.0
Create a shell in C
|
The file containing the environnement functions. More...
#include "../include/myshell.h"
Functions | |
char * | get_env_var (char **env, char *var) |
Get an environment variable. | |
void | replace_env_var (char **env, char *name, char *value) |
Replace an environment variable. | |
void | check_path (mysh_t *mysh) |
Check if the PATH is set in the environment and set it if not. | |
void | update_path_list (mysh_t *mysh) |
Update the path list. | |
The file containing the environnement functions.
void check_path | ( | mysh_t * | mysh | ) |
Check if the PATH is set in the environment and set it if not.
mysh | The shell structure |
char * get_env_var | ( | char ** | env, |
char * | var ) |
Get an environment variable.
env | The environment |
var | The variable to get |
void replace_env_var | ( | char ** | env, |
char * | name, | ||
char * | value ) |
Replace an environment variable.
env | The environment |
name | The name of the variable |
value | The new value |
void update_path_list | ( | mysh_t * | mysh | ) |
Update the path list.
mysh | The shell structure |