maxishell
Implementation of a shell for Linux-like systems
|
#include "shell.h"
#include "env.h"
#include "libft.h"
#include <stdlib.h>
#include <stdio.h>
#include "exit_status.h"
Go to the source code of this file.
Functions | |
void | print_env_stack (t_env *envp) |
int | builtin_env (t_ms_data *data) |
int builtin_env | ( | t_ms_data * | data | ) |
Definition at line 35 of file env.c.
References s_ms_data::args, s_ms_data::envp, s_ms_data::exit_status, EXIT_SUCCESS, ft_itoa(), ft_putstr_fd(), ft_strcmp(), IS_DIRECTORY, print_env_stack(), set_exit_status(), set_shell_var(), and s_ms_data::shell_variables.
Referenced by execute().
void print_env_stack | ( | t_env * | envp | ) |
Definition at line 23 of file env.c.
References ft_printf(), s_env::key, s_env::next, and s_env::value.
Referenced by builtin_env().