{"id":20574660,"url":"https://github.com/llefranc/42_minishell","last_synced_at":"2025-09-14T13:32:52.995Z","repository":{"id":151135583,"uuid":"297949148","full_name":"llefranc/42_minishell","owner":"llefranc","description":"School project: create a shell working like bash.","archived":false,"fork":false,"pushed_at":"2021-01-15T13:30:00.000Z","size":3744,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T21:40:25.299Z","etag":null,"topics":["42","42born2code","42paris","42school","minishell","pipes","processes","redirection"],"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/llefranc.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-23T11:34:13.000Z","updated_at":"2023-03-28T08:17:29.000Z","dependencies_parsed_at":"2024-03-09T06:00:28.907Z","dependency_job_id":null,"html_url":"https://github.com/llefranc/42_minishell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llefranc%2F42_minishell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llefranc%2F42_minishell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llefranc%2F42_minishell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llefranc%2F42_minishell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llefranc","download_url":"https://codeload.github.com/llefranc/42_minishell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242196006,"owners_count":20087761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","42born2code","42paris","42school","minishell","pipes","processes","redirection"],"created_at":"2024-11-16T05:36:26.673Z","updated_at":"2025-03-06T10:42:43.916Z","avatar_url":"https://github.com/llefranc.png","language":"C","readme":"# minishell (@42Paris)\n\n\"As beautiful as a shell\"\n\n![Alt text](https://github.com/lucaslefrancq/42_minishell/blob/master/minishell_example.png)\n\n## About\n\nMinishell is a project of the mandatory part of the cursus that I made with my friend [Corentin Debraix][1].\nIt's only made in C and the main goal was to create a shell working like bash.\nIn this case we had to understand how processes, redirections, pipes, execve and bash builtins work.\nWe also had to learn how bash was handling a command line (lexer / parser / exec).\n\n- Here is the [subject][2]\n\n`This project was code for MACOS`\n\n### Building and running the project\n\n1. Download/Clone this repo\n\n        git clone https://github.com/lucaslefrancq/42_minishell.git\n\n2. `cd` into the root directory, and run `make`\n\n        cd 42_minishell\n        make\n\n3.  run `./minishell` without any argument.\n    \n## Sources\n\n- [Tutorial for writing a small shell in C][5]\n- [Comprendre les fonctions liées aux processus : fork, exit et wait (FR)][6]\n- [Understanding fork][7]\n- [Difference between inputs / arguments when using pipes][8]\n- [Understanding redirection][3]\n- [Les variables d'environnement en C (FR)][4]\n\n\n[1]: https://github.com/codebrai\n[2]: https://github.com/lucaslefrancq/42_minishell/blob/master/minishell.en.subject.pdf\n[8]: https://superuser.com/questions/178796/understanding-how-inputs-are-sent-to-pipes-in-bash/178798#178798\n[3]: https://www.cs.rutgers.edu/~pxk/416/notes/c-tutorials/dup2.html\n[4]: http://supertos.free.fr/supertos.php?page=950\n[5]: https://brennan.io/2015/01/16/write-a-shell-in-c/\n[6]: http://pageperso.lif.univ-mrs.fr/~luigi.santocanale/teaching/0506teaching/SYSTEME/lecture2.handout.pdf\n[7]: https://www.geeksforgeeks.org/fork-system-call/#:~:text=Fork%20system%20call%20is%20used,the%20fork()%20system%20call.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllefranc%2F42_minishell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllefranc%2F42_minishell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllefranc%2F42_minishell/lists"}