{"id":27928524,"url":"https://github.com/vidal-m/microshell","last_synced_at":"2025-05-07T02:40:18.126Z","repository":{"id":291267304,"uuid":"977120230","full_name":"Vidal-m/microshell","owner":"Vidal-m","description":"the lastest version of my microshell","archived":false,"fork":false,"pushed_at":"2025-05-03T14:23:35.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T14:32:19.567Z","etag":null,"topics":["42minishell","c","ecole42","examrank4"],"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/Vidal-m.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,"zenodo":null}},"created_at":"2025-05-03T13:21:57.000Z","updated_at":"2025-05-03T14:28:45.000Z","dependencies_parsed_at":"2025-05-03T14:32:49.616Z","dependency_job_id":null,"html_url":"https://github.com/Vidal-m/microshell","commit_stats":null,"previous_names":["vidal-m/42exame-rank-04"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vidal-m%2Fmicroshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vidal-m%2Fmicroshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vidal-m%2Fmicroshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vidal-m%2Fmicroshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vidal-m","download_url":"https://codeload.github.com/Vidal-m/microshell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252802293,"owners_count":21806469,"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":["42minishell","c","ecole42","examrank4"],"created_at":"2025-05-07T02:40:17.360Z","updated_at":"2025-05-07T02:40:18.112Z","avatar_url":"https://github.com/Vidal-m.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"#42Exam-rank-04\n# microshell\n\nSmall shell (terminal) that executes simple commands with support for pipes (`|`) and separators (`;`). Project developed in 42 Luanda to understand the fundamentals of processes, `fork`, `execve`, `pipe` and `chdir`.\n\n---\n\n## 🧠 Objective\n\nImplement a **microshell** capable of:\n- Execute commands with multiple arguments\n- Support chained commands with `;`\n- Support `|` pipes\n- Handle the built-in `cd` command\n- Manage basic runtime errors and directories\n\n---\n\n## ⚙️ Compilation\n\n```bash\ncc -Wall -Wextra -Werror microshell.c -o microshell\n```\n\n🧪 Usage\nExecuting simple commands\nbash\nCopy\nEdit\n./microshell ls -l ; echo Hello\nExecution with pipes\nbash\nCopy\nEdit\n./microshell ls -l | grep microshell\n📝 cd command behavior\nbash\nCopy\nEdit\n./microshell cd nonexistent_folder\nExit:\n\nvbnet\nCopy\nEdit\nerror: cd: cannot change directory to folder_inexistente\n❌ Error handling\ncd with invalid arguments\n\ncommands that do not exist or fail to execute\n\nfork or pipe failures are ignored in a simplified way (according to the project scope)\n\n🔧 Implemented functions\nexec_it – Execute commands with execve\n\ncd – Own implementation of the cd command\n\nft_strlen – Helper function to count the length of strings\n\nmain – Handles parsing, fork, pipe, and execution control\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidal-m%2Fmicroshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvidal-m%2Fmicroshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidal-m%2Fmicroshell/lists"}