Skip to content

MaxenceCanler/42sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42sh

A POSIX-compliant Unix shell written in C, implemented as part of the Epitech curriculum.

Features

  • Command execution via PATH resolution
  • Pipes (|) — chain multiple commands
  • Redirections (>, <, >>, 2>)
  • Separators (;, &&, ||)
  • Builtins: cd, echo, env, setenv, unsetenv, exit
  • Custom prompt display
  • Input parsing and argument handling

Build & Run

make
./42sh
make re     # clean rebuild
make fclean # remove all binaries

Project Structure

src/
├── builtins/       # built-in commands
├── pipes/          # pipe handling
├── redirects/      # I/O redirections
├── separators/     # ; && || handling
├── prompt/         # prompt rendering
└── get_arg/        # argument parsing
includes/           # headers
lib/                # custom C library

Contributors

  • Maxence Canler

About

POSIX-compliant Unix shell in C with pipes, redirections and builtins

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors