{"id":23642046,"url":"https://github.com/omagdy7/tiny-shell","last_synced_at":"2026-05-16T22:06:42.275Z","repository":{"id":267880604,"uuid":"901905211","full_name":"omagdy7/tiny-shell","owner":"omagdy7","description":"Barebones implementation for a simple unix shell in rust.","archived":false,"fork":false,"pushed_at":"2024-12-29T21:34:25.000Z","size":98,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T12:48:06.540Z","etag":null,"topics":["rust","shell"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/omagdy7.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":"2024-12-11T14:34:24.000Z","updated_at":"2024-12-29T21:34:28.000Z","dependencies_parsed_at":"2024-12-13T02:20:40.718Z","dependency_job_id":"1daa7ac3-939d-42c9-b49d-281beaacc0a6","html_url":"https://github.com/omagdy7/tiny-shell","commit_stats":null,"previous_names":["omagdy7/tiny-shell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/omagdy7/tiny-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omagdy7%2Ftiny-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omagdy7%2Ftiny-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omagdy7%2Ftiny-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omagdy7%2Ftiny-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omagdy7","download_url":"https://codeload.github.com/omagdy7/tiny-shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omagdy7%2Ftiny-shell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268182242,"owners_count":24209370,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"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":["rust","shell"],"created_at":"2024-12-28T10:39:07.926Z","updated_at":"2026-05-16T22:06:37.251Z","avatar_url":"https://github.com/omagdy7.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shell Implementation in Rust\n\nThis repository contains my implementation of a shell as part of the [CodeCrafters.io Shell Challenge](https://codecrafters.io). Built entirely in Rust, this shell replicates basic Unix shell functionalities.\n\n---\n\n## Current Features\n\n### Built-in Commands\n- **`cd`**: Change the current working directory.\n- **`pwd`**: Display the current working directory.\n- **`echo`**: Print arguments to the standard output.\n- **`type`**: Display whether a command is a built-in or an external executable.\n- **`exit`**: Terminate the shell.\n\n### External Command Execution\n- Seamlessly runs external binaries available in the system PATH.\n- Displays standard output and standard error from commands.\n\n### Robust Path Resolution\n- Handles relative paths, absolute paths, and home directory shortcuts (`~`).\n- Ensures proper context management for path changes and directory traversal.\n\n### Context Management\n- Maintains state for executables and the current working directory.\n- Dynamically updates the list of available executables from the system PATH.\n\n### Command Parsing\n- Supports handling single and double-quoted strings.\n- Escapes special characters in commands where appropriate.\n\n---\n\n## Next Steps (TODOs)\n\n### Enhanced Shell Features\n- [ ] Add support for I/O redirection (e.g., `\u003e`, `\u003c`, `\u003e\u003e`).\n- [ ] Implement piping (e.g., `command1 | command2`).\n- [ ] Add tab-completion for commands and file paths.\n- [ ] Support environment variable management (e.g., `export`, `unset`).\n\n### Usability Improvements\n- [ ] Add a history feature to navigate previous commands.\n\n### Testing and Optimization\n- [ ] Add unit and integration tests for core functionalities.\n- [ ] Optimize performance for large or complex commands.\n\n---\n\n## Getting Started\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/omagdy7/tiny-shell\n   cd tiny-shell\n   ```\n\n2. Build and run the project:\n   ```bash\n   cargo run --release\n   ```\n\n---\n\n## Acknowledgments\n\nSpecial thanks to [CodeCrafters.io](https://codecrafters.io) for designing this challenge and providing an engaging platform for learning system-level programming.\n\n\n## Resources\n- https://www.gnu.org/software/bash/manual/bash.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomagdy7%2Ftiny-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomagdy7%2Ftiny-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomagdy7%2Ftiny-shell/lists"}