{"id":27014045,"url":"https://github.com/souleeater99/minishell","last_synced_at":"2026-02-15T13:34:20.780Z","repository":{"id":284393683,"uuid":"800602267","full_name":"SouleEater99/Minishell","owner":"SouleEater99","description":"About Minishell - A 42 School project implementing a simplified Bash-like shell in C  This educational project dives into core systems programming by recreating shell fundamentals:  Process control (fork/exec, pipes, signals)  File I/O (redirections, heredoc)  Memory-managed environment (zero leaks)  Bash-like features with 42's strict coding stand","archived":false,"fork":false,"pushed_at":"2025-03-25T16:33:52.000Z","size":5874,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T13:19:57.246Z","etag":null,"topics":["1337cursus","1337school","42cursus","42projects","42school","bash","c","file","filedescriptor","filesystem","mangagement","memory-management","processes","programming","system","unix-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/SouleEater99.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":"2024-05-14T16:38:22.000Z","updated_at":"2025-03-25T16:42:14.000Z","dependencies_parsed_at":"2025-03-25T17:42:48.257Z","dependency_job_id":"9d7decdd-18ec-41cd-849c-49d4144ecd74","html_url":"https://github.com/SouleEater99/Minishell","commit_stats":null,"previous_names":["souleeater99/minishell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SouleEater99/Minishell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SouleEater99%2FMinishell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SouleEater99%2FMinishell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SouleEater99%2FMinishell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SouleEater99%2FMinishell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SouleEater99","download_url":"https://codeload.github.com/SouleEater99/Minishell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SouleEater99%2FMinishell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29479866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"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":["1337cursus","1337school","42cursus","42projects","42school","bash","c","file","filedescriptor","filesystem","mangagement","memory-management","processes","programming","system","unix-shell"],"created_at":"2025-04-04T13:20:00.988Z","updated_at":"2026-02-15T13:34:20.743Z","avatar_url":"https://github.com/SouleEater99.png","language":"C","readme":"# 🐚 Minishell - As Beautiful as a Shell\n\n**A 42 School project to create a simplified UNIX command-line interpreter**  \n*Inspired by bash, written in C with ❤️*\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Norminette](https://img.shields.io/badge/code%20style-42_Norminette-green.svg)](https://github.com/42School/norminette)\n\n## 🌟 Features\n\n### Mandatory\n- **Interactive prompt** with working command history (using GNU readline)\n- **Command execution** via PATH or absolute/relative paths\n- **Advanced parsing** with single quotes `'`, double quotes `\"`, and environment variables (`$VAR`)\n- **Redirections**:\n  - Input `\u003c` and output `\u003e` redirection\n  - Heredoc `\u003c\u003c` delimiter support\n  - Append mode `\u003e\u003e`\n- **Pipes** (`|`) for multi-command chaining\n- **Signal handling** for Ctrl-C, Ctrl-D, and Ctrl-\\ (bash-like behavior)\n- **Builtins**:\n  - `echo` with `-n` option\n  - `cd`, `pwd`, `exit`\n  - `export`, `unset`, `env` for environment management\n\n### Bonus (Optional)\n- **Logical operators** `\u0026\u0026` and `||` with parentheses\n- **Wildcard expansion** `*` for current directory\n- Enhanced error handling and edge case management\n\n## 🛠️ Installation\n\n1. Clone repository:\n   ```bash\n   git clone https://github.com/\u003cyour-username\u003e/minishell.git\n   cd minishell\n   \n### Compile with Makefile:\n\n```bash\nmake\n```\n### Run:\n\n```bash\n./minishell\n```\nRequires GNU readline library (install via package manager if needed)\n\n## 🚀 Usage\n```\n$\u003e ./minishell\nminishell\u003e ls -l | grep .c | wc -l\n      42\nminishell\u003e echo \"Hello $USER\" \u003e greeting.txt\nminishell\u003e cat \u003c\u003c EOF \u003e output.txt\nheredoc\u003e Multiline\nheredoc\u003e input\nheredoc\u003e EOF\n```\n## 📚 Implementation Details\nLanguage: C (C99 standard)\n\nMemory: Zero-leaks policy with careful allocation/free management\n\nArchitecture: Modular design with separate parsing/execution logic\n\nCompliance: Follows 42 School Norm (strict code style guidelines)\n\nDependencies: Uses readline for line editing and history features\n\n## 🧠 Challenges Overcome\nPrecise handling of quoting and expansion rules\n\nFile descriptor management for complex redirections\n\nProcess synchronization in pipes\n\nSignal handling in interactive/non-interactive modes\n\nEnvironment variable management\n\n## ⚠️ Limitations\nNot a full POSIX-compliant shell\n\nLimited built-in commands compared to bash\n\nNo tilde expansion or advanced globbing\n\n## 🤝 Contributing\nPull requests welcome! Please follow:\n\n42 School Norm guidelines\n\nTest thoroughly\n\nDocument changes\n\n## 📜 License\nMIT License - See LICENSE for details\n\n\"The best way to predict the future is to implement it.\" - Inspired by Alan Kay\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouleeater99%2Fminishell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouleeater99%2Fminishell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouleeater99%2Fminishell/lists"}