{"id":49067120,"url":"https://github.com/ayeshamk23/minishell","last_synced_at":"2026-04-20T05:12:01.952Z","repository":{"id":293483887,"uuid":"984194921","full_name":"ayeshamk23/minishell","owner":"ayeshamk23","description":"minishell is a basic UNIX shell written in C that supports command execution, pipes, redirections, and environment variables.","archived":false,"fork":false,"pushed_at":"2025-05-15T14:43:58.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T15:47:33.792Z","etag":null,"topics":["environment-variables","fork","minishell","parser","pipe","redirection","shell","terminal","unix"],"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/ayeshamk23.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-15T14:40:25.000Z","updated_at":"2025-05-15T14:44:02.000Z","dependencies_parsed_at":"2025-05-15T15:47:48.008Z","dependency_job_id":null,"html_url":"https://github.com/ayeshamk23/minishell","commit_stats":null,"previous_names":["ayeshamk23/minishell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ayeshamk23/minishell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayeshamk23%2Fminishell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayeshamk23%2Fminishell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayeshamk23%2Fminishell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayeshamk23%2Fminishell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayeshamk23","download_url":"https://codeload.github.com/ayeshamk23/minishell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayeshamk23%2Fminishell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32033812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["environment-variables","fork","minishell","parser","pipe","redirection","shell","terminal","unix"],"created_at":"2026-04-20T05:12:01.291Z","updated_at":"2026-04-20T05:12:01.935Z","avatar_url":"https://github.com/ayeshamk23.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐚 minishell\n\n\u003e A simplified UNIX shell built in C with support for pipes, redirections, and environment variables.\n\n## 📌 Description\n\n**minishell** is a 42 School project that replicates core behavior of a real UNIX shell. It supports executing built-in and external commands, handling pipes, redirections, and managing environment variables — all within a controlled and memory-safe environment.\n\nThis project offers a deep dive into process control, terminal interaction, and string parsing in C, providing valuable experience in building a real-world system tool from scratch.\n\n## 🔧 Features\n\n- Command execution (`ls`, `echo`, etc.)\n- Built-in commands: `cd`, `pwd`, `exit`, `env`, `export`, `unset`\n- Environment variable expansion (e.g. `$HOME`)\n- Pipes (`|`) and multiple chained commands\n- Redirections: `\u003e`, `\u003e\u003e`, `\u003c`, `\u003c\u003c` (heredoc)\n- Quote handling (single and double)\n- Exit codes and error messages\n- Signal handling (`ctrl + C`, `ctrl + D`, `ctrl + \\`)\n- No usage of `system()` or other shell functions\n\n## 🚀 Getting Started\n\n### 🧱 Compilation\n\n```bash\nmake\n```\n\n### ▶️ Run the shell\n\n```bash\n./minishell\n```\n\n### 💡 Example\n\n```bash\nminishell$ echo Hello | cat -e\nHello$\n```\n\n## 📘 Concepts Learned\n\n- Process creation and control using `fork`, `execve`, `wait`\n- File descriptor duplication with `dup`, `dup2`\n- Pipe management and redirection logic\n- Environment variable manipulation\n- Custom string parsing/tokenizing\n- Signal handling (`SIGINT`, `SIGQUIT`)\n- Error messaging and return codes\n- Writing and debugging a command interpreter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayeshamk23%2Fminishell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayeshamk23%2Fminishell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayeshamk23%2Fminishell/lists"}