{"id":21072207,"url":"https://github.com/bsach64/bhshell","last_synced_at":"2026-05-09T01:37:55.742Z","repository":{"id":222857367,"uuid":"755469338","full_name":"bsach64/bhshell","owner":"bsach64","description":"A Simple Shell which supports piping and redirection","archived":false,"fork":false,"pushed_at":"2024-04-25T12:13:23.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T03:09:59.318Z","etag":null,"topics":["c","linux","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/bsach64.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}},"created_at":"2024-02-10T10:00:40.000Z","updated_at":"2024-04-25T12:13:27.000Z","dependencies_parsed_at":"2024-04-25T13:44:17.534Z","dependency_job_id":null,"html_url":"https://github.com/bsach64/bhshell","commit_stats":null,"previous_names":["bsach64/bhshell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bsach64/bhshell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsach64%2Fbhshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsach64%2Fbhshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsach64%2Fbhshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsach64%2Fbhshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsach64","download_url":"https://codeload.github.com/bsach64/bhshell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsach64%2Fbhshell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32804371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["c","linux","shell"],"created_at":"2024-11-19T18:55:52.408Z","updated_at":"2026-05-09T01:37:55.711Z","avatar_url":"https://github.com/bsach64.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Simple Shell\nA shell written in C to help understand processes.\n\n## Features\nHas 3 built in commands =\u003e [cd, help, exit].\\\nAlso supports redirection and piping.\\\nSo, a command like `ping -c 5 google.com | grep rtt \u003e response.txt` works.\nBut, multiple pipes are not supported.\n\n## Build\n`git clone https://github.com/bsach64/bhshell.git`\\\n`cd bhshell`\\\n`make bhshell`\\\nIf you want to run tests\\\n    `make test`\\\n`./bhshell`\n\n## TODO\n- [x] Understand how creating processes actually works\n- [x] Simulate the \"|\" operator\n- [x] Rewrite for better organisation and error handling\n    - [x] Rewrite to use xmalloc\n    - [x] Add tests\n- [x] prompt shows current working directory\n- [x] Remove `exit(EXIT_FAILURE)`\n- [x] Rewrite the Parser {Basically}\n    - [x] Simulate the \"\u003e\" operator of $BASH\n    - [x] Allow for the \"|\" operator of $BASH\n- [ ] Maybe\n    - [ ] Support multiple \"\u003e\" {allowing for `ls \u003e file1.txt \u003e file2.txt`}\n    - [ ] Escape characters etc {echo \"wow\" should print wow instead of \"wow\"}\n    - [ ] Implement some level of globbing (Meaning *.txt means all .txt files in the current dir)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsach64%2Fbhshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsach64%2Fbhshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsach64%2Fbhshell/lists"}