Minishell
|
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <linux/limits.h>
#include "../../include/builtins.h"
#include "../../include/env.h"
#include "../../include/utils.h"
Functions | |
int | cd_dir (data_t *data, run_command_t *command) |
int | load_from_home (data_t *data, run_command_t *command) |
int | builtin_cd (data_t *data, run_command_t *command) |
int builtin_cd | ( | data_t * | data, |
run_command_t * | command ) |
int cd_dir | ( | data_t * | data, |
run_command_t * | command ) |
After loading the absolute path of the directory, this function will cd
data | Global data structure |
command | Current command item |
int load_from_home | ( | data_t * | data, |
run_command_t * | command ) |