{"id":27101593,"url":"https://github.com/lucienfer/minishell-42","last_synced_at":"2026-04-27T22:31:22.466Z","repository":{"id":186451255,"uuid":"675198162","full_name":"lucienfer/Minishell-42","owner":"lucienfer","description":"This is my final 42's project Minishell, I implemented my own shell in C, which supports redirections, pipes, environment variables and several builtins ","archived":false,"fork":false,"pushed_at":"2023-08-06T05:43:39.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T14:48:32.801Z","etag":null,"topics":["42","c","minishell42","shell"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucienfer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-06T05:33:04.000Z","updated_at":"2023-08-06T05:44:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"7cbf6205-6cf1-41fd-8dd3-ff06dabbda90","html_url":"https://github.com/lucienfer/Minishell-42","commit_stats":null,"previous_names":["lucienfer/minishell-42"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lucienfer/Minishell-42","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucienfer%2FMinishell-42","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucienfer%2FMinishell-42/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucienfer%2FMinishell-42/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucienfer%2FMinishell-42/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucienfer","download_url":"https://codeload.github.com/lucienfer/Minishell-42/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucienfer%2FMinishell-42/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32358509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["42","c","minishell42","shell"],"created_at":"2025-04-06T14:48:33.853Z","updated_at":"2026-04-27T22:31:22.449Z","avatar_url":"https://github.com/lucienfer.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minishell-42\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#about\"\u003eAbout\u003c/a\u003e \u0026#xa0; | \u0026#xa0;\n  \u003ca href=\"#links\"\u003eLinks\u003c/a\u003e \u0026#xa0; | \u0026#xa0;\n  \u003ca href=\"#functions\"\u003eFunctions\u003c/a\u003e \u0026#xa0; | \u0026#xa0;\n  \u003ca href=\"#starting\"\u003eStarting\u003c/a\u003e\n\u003c/p\u003e\n\n\n## About ##\n\n- Minishell is a project at school 42 and the instructions were given in the [subject](https://github.com/anolivei/Minishell42/blob/main/subject.pdf).\n\n- The objective of this project is to create a simple shell to learn a lot about processes and file descriptors.\n\n- The existence of shells is linked to the very existence of IT. At the time, all coders agreed that communicating with a computer using aligned 1/0 switches was seriously irritating. It was only logical that they came up with the idea to communicate with\na computer using interactive lines of commands in a language somewhat close to english.\nWith Minishell, you’ll be able to travel through time and come back to problems people faced when Windows didn’t exist.\n\n## Links ##\n\n- [Notion](https://www.notion.so/Minishell-Materials-7bbd45a806e04395ab578ca3f805806c)\n\n- [Linux Commands](https://www.rapidtables.com/code/linux/index.html)\n\n- [Unix Processes in C](https://www.youtube.com/watch?v=cex9XrZCU14\u0026list=PLfqABt5AS4FkW5mOn2Tn9ZZLLDwA3kZUY\u0026index=1)\n\n- [Writing a Unix Shell - Part I](https://indradhanush.github.io/blog/writing-a-unix-shell-part-1/)\n\n- [Writing a Unix Shell - Part II](https://indradhanush.github.io/blog/writing-a-unix-shell-part-2/)\n\n- [Writing a Unix Shell - Part III](https://indradhanush.github.io/blog/writing-a-unix-shell-part-3/)\n\n- [Bash Guide for Beginners](https://tldp.org/LDP/Bash-Beginners-Guide/html/index.html)\n\n- [Advanced Bash-Scripting Guide](https://tldp.org/LDP/abs/html/index.html)\n\n- [To Understand Pipe](https://www.youtube.com/watch?v=uHH7nHkgZ4w)\n\n- [To Understand Dup](https://www.youtube.com/watch?v=EqndHT606Tw)\n\n- [Pipe and Dup](https://www.youtube.com/watch?v=fOaK6oRqhEo)\n\n\n## Functions ##\nOnly the following functions are allowed to be used in this project:\u003cbr\u003e\n| Function | Description | Function | Description |\n|----------|-------------|----------|-------------|\n|readline | read a line from the terminal |lstat | get file status | \n|rl_clear_history | clear the history list by deleting all of the entries | fstat | get file status by fd |\n|rl_on_new_line | tell the update routines that we have moved onto a new line | unlink | remove a specified file |\n|rl_replace_line | replace the contents of rl_line_buffer with text | execve | execute program |\n|rl_redisplay | change what's displayed on the screen | dup | duplicate a file descriptor |\n|add_history | save the line in a history list of lines | dup2 | duplicate a file descriptor |\n|printf | format and print data | pipe | create pipe |\n|malloc | allocate dynamic memory | opendir | open a directory |\n|free | free dynamic memory | readdir | read a directory |\n|write | write to a file descriptor | closedir | close a directory |\n|access | check user's permissions for a file | strerror | return string describing error number |\n|open | open and can create a file | perror | print a system error message |\n|read | read from a file descriptor | isatty | test whether a file descriptor refers to a terminal |\n|close | close a file descriptor | ttyname | return name of a terminal |\n|fork | create a child process | ttyslot | find the slot of the current user's terminal in some file |\n|wait | wait for process to change state | ioctl | control device |\n|waitpid | wait for process to change state | getenv | get an environment variable |\n|wait3 | wait for process to change state | tcsetattr | control asynchronous communications ports |\n|wait4 | wait for process to change state | tcgetattr | control asynchronous communications ports |\n|signal | ANSI C signal handling | tgetent | termcap database emulation |\n|sigaction | examine and change a signal action | tgetflag |  termcap database emulation |\n|kill | send signal to a process | tgetnum |  termcap database emulation |\n|exit | cause normal process termination | tgetstr | termcap database emulation |\n|getcwd | get current working directory | tgoto | termcap database emulation |\n|chdir | change working directory | tputs | curses interfaces to terminfo database |\n|stat | get file status by pathname |\n\n## Starting ##\n\n```bash\n# Clone this project\n$ git clone https://github.com/lucienfer/Minishell-42\n\n# Access\n$ cd Minishell42\n\n# Install the readline lib\n$ sudo apt-get install libreadline6-dev\n\n# Compile the project\n$ make\n\n# Run the project\n$ ./minishell\n\n```\n\u003cp align=\"center\"\u003e\n\u003cimg width=\"500px\" src=\"./bighell.png?raw=true\" /\u003e\n\u003c/p\u003e\n\u0026#xa0;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucienfer%2Fminishell-42","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucienfer%2Fminishell-42","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucienfer%2Fminishell-42/lists"}