Rewrite a simple shell in c
Subject: Minishell - 42
Using make
will create the minishell
executable.
Simply run it with :
./minishell
'
and"
work the same as in bash- Able to run commandes from an absolute, relative or environment PATH, including arguments or options.
- Commands can be separate with
;
- Handle redirections
>
>>
<
and pipes|
as well - Environment variables are handled like
$HOME
including return code$?
- Like in bash, you can use
Ctrl-C
to interrupt andCtrl-\
to quit a program, as well asCtrl-D
to throw an EOF - some "built-in" were recoded:
echo
,pwd
,cd
,env
,export
,unset
andexit
.
- Bash
- Shell syntax
- Writing Your Own Shell
- Shell example
- Write a Shell in C
- Youtube - Program your own webserv in C
- Youtube - Socket Programming in C