{"id":13720055,"url":"https://github.com/skywalker212/tiny-shell","last_synced_at":"2026-01-17T02:55:54.909Z","repository":{"id":73805391,"uuid":"82393800","full_name":"skywalker212/tiny-shell","owner":"skywalker212","description":"A bash-like shell that performs basic functions of a shell. Made as a project for my course of System Software.","archived":false,"fork":false,"pushed_at":"2021-02-15T17:21:30.000Z","size":2938,"stargazers_count":61,"open_issues_count":0,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-14T09:39:04.495Z","etag":null,"topics":["bash","makefile","shell","trace","trace-files"],"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/skywalker212.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":"2017-02-18T14:54:47.000Z","updated_at":"2024-08-19T04:10:29.000Z","dependencies_parsed_at":"2023-07-16T09:31:45.488Z","dependency_job_id":null,"html_url":"https://github.com/skywalker212/tiny-shell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywalker212%2Ftiny-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywalker212%2Ftiny-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywalker212%2Ftiny-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skywalker212%2Ftiny-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skywalker212","download_url":"https://codeload.github.com/skywalker212/tiny-shell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252876295,"owners_count":21818158,"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","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","makefile","shell","trace","trace-files"],"created_at":"2024-08-03T01:00:59.339Z","updated_at":"2026-01-17T02:55:54.903Z","avatar_url":"https://github.com/skywalker212.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# Tiny Shell\r\n\r\nBy Akash Gajjar\r\n\r\n## Requirements\r\n\r\nKnowledge of c programming, linux commandline and linux processes is required to understand this piece of code.\r\n\r\n## Brief Intro\r\n\r\nThis is a part of an assignment in my course of System Software. This is a look alike shell program and it has a limited functionality. It is an easy project if you follow getting started pdf. \r\n\r\n## Files\r\n\r\n- Makefile      - Compiles your shell program and runs the tests\r\n- README.md     - This file\r\n- tsh.c         - The heart of this whole project\r\n- tshref        - The reference shell binary.\r\n\r\n## Wraping the head around\r\n\r\n- run  `make test\u003ctestnumber\u003e` to run tests on tsh which are specified in the trace files\r\n- run `make rtest\u003ctestnumber\u003e` to compare the tsh output with tshref (which is the reference shell)\r\n\r\n## Screenshots\r\n\r\n![test1](Screenshots/tsh-test1.png)\r\n\r\n### The files that are used to test shell\r\n\r\n- sdriver.pl    # The trace-driven shell driver\r\n- trace*.txt    # The 15 trace files that control the shell driver\r\n\r\n### Little C programs that are called by the trace files\r\n\r\n- myspin.c  - Takes argument `n` and spins for `n` seconds\r\n- mysplit.c - Forks a child that spins for `n` seconds\r\n- mystop.c  - Spins for `n` seconds and sends SIGTSTP to itself\r\n- myint.c   - Spins for `n` seconds and sends SIGINT to itself","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskywalker212%2Ftiny-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskywalker212%2Ftiny-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskywalker212%2Ftiny-shell/lists"}