A minimal and basic Mini-Shell bash code in C for a university project.
If you are a french speaker, , I invite you to check the Report of this project for more details.
Compile the program with make
.
Lauch the binary with ./mini-shell
.
Clean object files and binary by make clean
.
-
Display the current directory name ahead the prompt
-
Display user and computer names before the prompt
-
;
to mark the end of a command -
Commands:
cd
to change directoryls
to listauthor
to see creditsman mini
for the manualexit
to quit- Others native bash functions from sytem call...
-
Logical Operators and Redirects:
&
&&
>
>>
&>
2>
2>>
2>&1
|
(bugged feature)
You can find an example of execution at the end of the page 4 in my Project Report.
- Etienne PENAULT - Système d'Exploitation - Paris VIII