View Code? Open in Web Editor
NEW
The objective of this project is for you to create a simple shell. Yes, your own little bash or zsh. You will learn a lot about processes and file descriptors.
License: GNU General Public License v3.0
minishell's People
Contributors
Watchers
minishell's Issues
$?
must represent exit status of the last process but it is not working properly
After using commands 3-4 times minishell
throw a memory error
export
builtin command can accept multiple parameters and set it to environmental variables but here export
function only accept one parameter.
unset
builtin command should remove environmental variable from the process->envp
list but it only works with export
command (override old value)
Using export
builtin command without arguments cause segmentation fault
Example:
export TEST="1234"
- works fine
export
- crashes
export builtin
command (bash) prints all environmental variables in ascending order and after '=' character adds double quote ("")