Minishell is a command interpreter based on bash. It implements basic functionalities of a shell like environment variable, builtins, pipes, redirections...
The program is written in C.
readline, rl_clear_history, rl_on_new_line, rl_replace_line, rl_redisplay, add_history, printf, malloc, free, write, access, open, read, close, fork, wait, waitpid, wait3, wait4, signal, sigaction, sigemptyset, sigaddset, kill, exit, getcwd, chdir, stat, lstat, fstat, unlink, execve, dup, dup2, pipe, opendir, readdir, closedir, strerror, perror, isatty, ttyname, ttyslot, ioctl, getenv, tcsetattr, tcgetattr, tgetent, tgetflag, tgetnum, tgetstr, tgoto, tputs.
echo
echo the string to standart output. -n flag: do not output the trailing newlinecd
change the shell working directorypwd
print name of current directoryexport
set export attribute for shell variablesunset
unset values of shell variablesenv
print the environmentexit
cause the shell to exit with the exit status specified
- includes: contains header
- libft: contains the source code of my libft library, which is used in the program
- source: contains the source code of the program
$ git clone git@github.com:Anastasiia-Ni/Minishell.git
$ cd Minishell
$ make
$ ./minishell