This project consists of creating our own little bash. A program that can parse a command and execute it with arguments. Developed by @gpernas- and @karisti-.
- Runs executables from an absolute, relative or environment PATH (
/bin/ls
orls
), including arguments or options.'
and"
work the same as bash, except for multiline commands. - Redirections
>
>>
<
. - Pipes
|
. - You can separate commands with
;
. - Environment variables like
$HOME
, including the return code$?
. - Handling signals:
Ctrl-C
to interrupt,Ctrl-\
to quit a program andCtrl-D
to throw an EOF. - Some "built-in" functions:
echo
,pwd
,cd
,env
,export
,unset
andexit
.
- Install readline
brew install readline
- Get installed path
brew info readline
- Set correct paths for
RL_LIB
andRL_INC
in Makefile
make
for creating executable./minishell
for execution- Run commands
- Redirections
- Pipes
- Environment variables
- Signal handling
- Shell commands
- harm-smits minishell
- Writing Your Own Shell
- minishell flow image
- Shell Command Language
- Enseñarle a implementar un miniShell en lenguaje C
- How the shell works internally when entering a command
- Minishell explained
- Tester: minishell-tester
- Tester: minishell tests excel
- Tester: mini_tester
- Tester: minishell_tests