8000 GitHub - cyrilcolinet/PSU_minishell2_2017: :shell: [PART TWO] Mini Shell epitech project. The goal of the project is to recode a shell and simillary reproduce the 'tcsh' terminal, with only cd, setenv, unsetenv and exit commands.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🐚 [PART TWO] Mini Shell epitech project. The goal of the project is to recode a shell and simillary reproduce the 'tcsh' terminal, with only cd, setenv, unsetenv and exit commands.

Notifications You must be signed in to change notification settings

cyrilcolinet/PSU_minishell2_2017

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Shell #2 -one step close to the 42sh...

Build Status

  • Binary name: mysh
  • Repository name: PSU_minishell2_2017
  • Repository rigths: ramassage-tek
  • Language: C
  • Compilation: via Makefile, including re, clean and fclean rules

Subject

The goal of the project is to enrich your minishell1 project by adding semicolons (‘;’), pipes (‘|’), and the four redirections (‘>’, ‘<’, ‘>>’, ‘<<’) management. Here is a simple example of a command you must hanlde:

∼/B-PSU-210> ./mysh
> mkdir test ; cd test ; ls -a ; ls | cat | wc -c > tutu ; cat tutu
...
5
>

💡 Error output, standard input and standard output redirections will be considered as bonuses.

Authorized functions

  • malloc, free, exit, opendir, readdir, closedir, getcwd, chdir
  • fork, stat, lstat, fstat, open, close, getline
  • read, write, execve, isatty, wait, waitpid
  • wait3, wait4, signal, kill, getpid, strerror, perror, strsignal
  • pipe, dup, dup2

About

🐚 [PART TWO] Mini Shell epitech project. The goal of the project is to recode a shell and simillary reproduce the 'tcsh' terminal, with only cd, setenv, unsetenv and exit commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0