The 42SH is a Epitech project. This is to reproduce a UNIX shell in C.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include
lib
moul
src
.42shrc
.gitignore
Makefile
README.md
auteur
man.tar

README.md

42sh

The 42SH is a Epitech project. This is to reproduce a UNIX shell in C.

42sh is a shell based on TCSH

Builtins

echo [-params] {string1} {string2} ...

setenv {variable name} {varialbe content}

unsetenv {variable name}

env

where {binary}

whoami

cd {directory | option}

which {command}

set {command}

unset {variable}

alias {alias name} {command}

history

jobs

fd {job id}

export {variable name}

sort [OPTION]... [FILE]

yes {string}

exit {return value}

pwd

Bonus

Auto-complétion / déplacement flèche

.42shrc

Other

Separator ;, || and &&

Multiple pipes

Redirections (< / << / > / >>)

Parenthesis

Environment variable

~ with users

Magic quotes (``)

Globbing (*)

Background (&)

PS1 with \u, \v, $?, \w, \l, \t

Scripting

Local alias with cwdcmd / postcmd / precmd / ignoreeof

History with !! !-x !x !command

You can see the manual