{"id":19999064,"url":"https://github.com/tlmader/mash","last_synced_at":"2026-04-12T08:41:26.569Z","repository":{"id":74862014,"uuid":"68348421","full_name":"tlmader/mash","owner":"tlmader","description":"Mash, a simple shell using the POSIX system call API","archived":false,"fork":false,"pushed_at":"2017-03-02T22:14:37.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T12:46:16.076Z","etag":null,"topics":["c","redirection","shell","stream"],"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/tlmader.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":"2016-09-16T02:54:53.000Z","updated_at":"2018-01-03T14:05:37.000Z","dependencies_parsed_at":"2023-06-29T02:31:44.915Z","dependency_job_id":null,"html_url":"https://github.com/tlmader/mash","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/tlmader%2Fmash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlmader%2Fmash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlmader%2Fmash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tlmader%2Fmash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tlmader","download_url":"https://codeload.github.com/tlmader/mash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241439486,"owners_count":19963095,"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":["c","redirection","shell","stream"],"created_at":"2024-11-13T05:10:21.676Z","updated_at":"2026-04-12T08:41:21.532Z","avatar_url":"https://github.com/tlmader.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mash\n\n**Principles of Operating Systems I Programming Assignment 1**\n\nA simple shell using the POSIX system call API.\n\n## Getting Started\nTo run the project, use the following commands in the terminal:\n1. `make`\n2. `./mash.exe`\n\n## Prompt\nOnce started, the user will be given a prompt that shows the current working directory (e.g.: `/home/csci4401\u003e`), and the shell enters an infinite loop where it takes user commands and executes them.\n\n## Built-in Commands\nMash implements the `cd` and `pwd` commands that allow a user to change the current directory and to print the current directory, respectively. The exit command allows orderly shell exit.\n\n## Simple Program Execution\nUnless the user types in a built-in command, any other input will be interpreted as an effort to run an executable. In response, Mash will `fork()` a process, execute the command and show the output (e.g.: `ls -l`).\n\n## Stream Redirection\nMash allows redirection of standard input/output streams to/from a file. E.g:\n* `ls -l \u003e output`\n* `sort alice.txt \u003e sorted.txt o sort \u003c alice.txt \u003e sorted.txt`\n\n## Pipes\nMash allows IPC via pipes. E.g.: `ls -l | grep sh | wc -l`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlmader%2Fmash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlmader%2Fmash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlmader%2Fmash/lists"}