{"id":24589110,"url":"https://github.com/big-shahmir/mini-bash","last_synced_at":"2026-04-18T01:01:45.314Z","repository":{"id":270070090,"uuid":"909252197","full_name":"Big-ShahMir/Mini-Bash","owner":"Big-ShahMir","description":"A minimal shell implementation designed to support basic shell functionality, including executing built-in commands, handling user input, and managing processes. This project is an educational exercise to understand how shells work at the system level.","archived":false,"fork":false,"pushed_at":"2024-12-28T07:45:44.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T22:07:50.385Z","etag":null,"topics":["bash","c","script","shell"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Big-ShahMir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-12-28T06:25:38.000Z","updated_at":"2024-12-28T07:50:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b53fe871-7b25-4ad6-8e76-690414438e33","html_url":"https://github.com/Big-ShahMir/Mini-Bash","commit_stats":null,"previous_names":["big-shahmir/mini-bash"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Big-ShahMir/Mini-Bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Big-ShahMir%2FMini-Bash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Big-ShahMir%2FMini-Bash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Big-ShahMir%2FMini-Bash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Big-ShahMir%2FMini-Bash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Big-ShahMir","download_url":"https://codeload.github.com/Big-ShahMir/Mini-Bash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Big-ShahMir%2FMini-Bash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31952206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: 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":["bash","c","script","shell"],"created_at":"2025-01-24T08:13:46.115Z","updated_at":"2026-04-18T01:01:45.306Z","avatar_url":"https://github.com/Big-ShahMir.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tiny Shell (tsh)\n\n## Overview\n\nTiny Shell (tsh) is a minimal shell implementation designed to support basic shell functionality, including executing built-in commands, handling user input, and managing processes. This project is an educational exercise to understand how shells work at the system level.\n\n---\n\n## Features\n\n- **Prompt Display**: Displays a custom prompt (`tsh\u003e `) to take user commands.\n- **Built-in Commands**:\n  - `cd \u003cdirectory\u003e`: Change the current working directory.\n  - `exit`: Exit the shell.\n  - `help`: Display information about the shell.\n- **Process Execution**: Supports running external programs.\n- **Background Processes**: Supports running processes in the background using `\u0026`.\n- **Signal Handling**: Gracefully handles `SIGINT` (Ctrl+C) and other signals.\n- **Error Handling**: Handles invalid commands and arguments gracefully.\n\n---\n\n## File Information\n### Files used to test your shell:\n- sdriver.pl : The trace-driven shell driver \n- trace*.txt : The 17 trace files that control the shell driver \n- tshref.out : Example output of the reference shell on all 17 traces \n\n### Little C programs that are called by the trace files:\n- myspin.c\t: Takes argument \u003cn\u003e and spins for \u003cn\u003e seconds \n- mysplit.c\t: Forks a child that spins for \u003cn\u003e seconds \n- mystop.c  : Spins for \u003cn\u003e seconds and sends SIGTSTP to itself \n- myint.c   : Spins for \u003cn\u003e seconds and sends SIGINT to itself \n\n\n## Build and Usage Instructions\n\n### Prerequisites\n - GCC or any C compiler\n - Linux or macOS environment (not tested on Windows)\n - Make utility\n\n### Build the Shell\n```bash\nmake\n```\n\n### Run the Shell\n```bash\n./tsh\n```\n\n## How to Use\n1. Launch the Shell: Run `./tsh` to start the Tiny Shell. The shell prompt will appear as `tsh\u003e`.\n2. Execute Commands:\n  - To run a command in the foreground:\n    ```bash\n    tsh\u003e ls -l\n    ```\n  - To run a command in the background:\n    ```bash\n    tsh\u003e sleep 10 \u0026\n    ```\n3. Built-in Commands:\n  - Quit the Shell:\n    ```bash\n    tsh\u003e exit\n    ```\n\n## Contributing\nContributions are welcome! Feel free to submit issues or pull requests to improve this program.\n\n## License\nThis project is licensed under the MIT License. See `LICENSE` file for details.\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbig-shahmir%2Fmini-bash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbig-shahmir%2Fmini-bash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbig-shahmir%2Fmini-bash/lists"}