About ย | ย Links ย | ย Functions ย | ย Starting ย | ย Author
-
Minishell is a project at school 42 and the instructions were given in the subject.
-
The objective of this project is to create a simple shell to learn a lot about processes and file descriptors.
-
The existence of shells is linked to the very existence of IT. At the time, all coders agreed that communicating with a computer using aligned 1/0 switches was seriously irritating. It was only logical that they came up with the idea to communicate with a computer using interactive lines of commands in a language somewhat close to english. With Minishell, youโll be able to travel through time and come back to problems people faced when Windows didnโt exist.
Only the following functions are allowed to be used in this project:
Function | Description | Function | Description |
---|---|---|---|
readline | fstat | ||
rl_on_new_line | unlink | ||
rl_replace_line | execve | ||
rl_redisplay | dup | ||
add_history | dup2 | ||
printf | pipe | ||
malloc | opendir | ||
free | readdir | ||
write | closedir | ||
open | strerror | ||
read | errno | ||
close | isatty | ||
fork | ttyname | ||
wait | ttyslot | ||
waitpid | ioctl | ||
wait3 | getenv | ||
wait4 | tcsetattr | ||
signal | tcgetattr | ||
kill | tgetent | ||
exit | tgetflag | ||
getcwd | tgetnum | ||
chdir | tgetstr | ||
stat | tgoto | ||
lstat | tputs |
# Clone this project
$ git clone https://github.com/anolivei/Minishell42
# Access
$ cd Minishell42
# Compile the project
$ make
# Run the project
$ ./minishell
ย