Bash-like shell It's a command-line interpreter
- Prompt with line edition
- Builtins
alias
,bg
,cd
,echo
,exit
,export
,fg
,hash
,jobs
,set
,source
,test
,type
,unalias
,unset
- Executing simple commands
- Execute in background
&
- Redirection
>
,>>
,<
and|
- Heredoc
<<
- Logical operands
&&
and||
- Separator
;
- Inhibitors
"
,'
and\
- Environment and local variables
$VAR
or${VAR}
- Command substitution
$(CMD)
- Dynamical autocompletion
- History (saved in
~/.42sh_history
) - PS1 environment variable to custom shell prompt (wiki)
$> git clone https://github.com/tcollard/42sh.git
$> cd 42sh && make
$> ./42sh
make
compilation of binary executablemake clean
delete all.o
filesmake fclean
delete all.o
files and./42sh
make re
dofclean
andmake
Commands | Functions |
---|---|
!! |
Last command in history |
!word |
Look for the last command starting by word |
![-]number |
Look for the command at index number , - define that the search starts from the end |
Commands | Functions |
---|---|
alias |
List all the current aliases set |
alias [name[=value] ...] |
Sets an alias for name so it replaces as value internally |
unalias [-a] name [name ...] |
Remove the name arguments of the alias table. -a removes all aliases |
Commands | Functions |
---|---|
hash |
List hash table contents |
hash -r |
Clear the hash table |
Commands | Functions |
---|---|
jobs [n] |
List all the current running jobs, n specify the job you want (the form is in job id form or it can be a numerical value) |
fg [n] |
Bring the specified job to foreground |
bg [n] |
Bring the specified job to background |
All of our shell functionalities are in Posix norm.
Name | Github | |
---|---|---|
Gwennaël Guichard | [email protected] | https://github.com/gguichard |
Franck Werner | [email protected] | https://github.com/FranckRJ |
Jonas Cohen | [email protected] | https://github.com/jocohen |
Thibault Collard | [email protected] | https://github.com/tcollard |