Project description
A small reproduction of a bash minishell capable of handling the most common shell operations and the most basic internal commands. For more: GitHub repo.
🐚 The shell should:
- Show a prompt when waiting for a new command
-
Search and launch the right executable (based on the
PATHvariable or by using relative or absolute path) like in bash -
It must implement the builtins like in bash:
echowith option-ncdwith only a relative or absolute pathpwdwithout any optionsexportwithout any optionsunsetwithout any options-
envwithout any options and any arguments exitwithout any options
-
;in the command should separate commands like in bash -
'and"should work like in bash except for multiline commands -
Redirections
>>should work like in bash except for file descriptor aggregation - Pipes
|should work like in bash -
Environment variables (
$followed by characters) should work like in bash $?should work like in bash- ctrl-C, ctrl-D and ctrl-\ should have the same result as in bash