{"id":28484086,"url":"https://github.com/zen-zap/rune","last_synced_at":"2026-05-01T02:32:05.954Z","repository":{"id":297467286,"uuid":"995004305","full_name":"zen-zap/rune","owner":"zen-zap","description":"A minimal shell written in Rust","archived":false,"fork":false,"pushed_at":"2025-06-16T18:29:47.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-29T12:39:05.882Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zen-zap.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-06-02T20:21:38.000Z","updated_at":"2025-06-16T18:29:50.000Z","dependencies_parsed_at":"2025-06-05T16:41:07.048Z","dependency_job_id":"9838a84d-d4d0-4ea2-b3d4-677628c76c6f","html_url":"https://github.com/zen-zap/rune","commit_stats":null,"previous_names":["zen-zap/rune"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zen-zap/rune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zen-zap%2Frune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zen-zap%2Frune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zen-zap%2Frune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zen-zap%2Frune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zen-zap","download_url":"https://codeload.github.com/zen-zap/rune/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zen-zap%2Frune/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":"2025-06-07T22:06:21.299Z","updated_at":"2026-05-01T02:32:05.948Z","avatar_url":"https://github.com/zen-zap.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rune\n\nA custom Unix-like shell implemented in Rust.\n\n---\n\n## Features\n\n### Command Execution\n- **External Commands:** Runs any executable available in `rune.conf` (e.g., `ls`, `grep`, `cat`). \n- **Built-ins:** Supports standard built-in commands:\n  - `cd [dir]` — Change directory\n  - `pwd` — Print current working directory\n  - `echo` — Display some message\n  - `exit [code]` — Exit the shell with an optional status code\n\n### Pipelines\n- **Pipeline Processing:** Supports chaining commands with `|`, e.g.:\n  ```sh\n  ls | grep src | wc\n  ```\n  Each stage runs in its own process, with standard input/output properly connected via pipes.\n\n### Miscellaneous\n- **Process Groups:** Each pipeline sets up a process group for future job control features (`setpgid`), laying the groundwork for `Ctrl+Z`, backgrounding, and job management.\n- **Proper FD Handling:** Pipes, stdin/stdout redirection, and close-on-exec all handled robustly to avoid resource leaks and deadlocks.\n\n\n## Build and Run Instructions\n\n### 1. **Prerequisites**\n- [Rust](https://www.rust-lang.org/tools/install) (latest stable recommended)\n- Unix-like OS (Linux, macOS, WSL, etc.)\n\n### 2. **Clone the Repository**\n```sh\ngit clone https://github.com/zen-zap/rune.git\ncd rune\n```\n\n### 3. **Build**\n```sh\ncargo build\n```\nOr, for a development build with debug info:\n```sh\ncargo build --release\n```\n\n### 4. **Run**\n```sh\ncargo run\n```\nOr, run the compiled binary directly:\n```sh\n./target/debug/rune\n# Or, for the release build:\n./target/release/rune\n```\n\n### 5. **Usage Example**\n```\nRuneShell $ ls | grep src | wc\n      1       1       4\nRuneShell $ cd ..\nRuneShell $ pwd\n/home/username\nRuneShell $ exit\n```\n\n---\n\n## Important!\n\nIt looks for a `rune.conf` file in `../rune` which is the parent directory of the rune directory, when you clone the repository.\n\nExample Configuration:\n```\n/bin\n/usr/bin\n/usr/local/bin\n/sbin\n/usr/sbin\n/home/username/.local/bin\n./bin\n```\n\nAny contributions are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzen-zap%2Frune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzen-zap%2Frune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzen-zap%2Frune/lists"}