{"id":19758151,"url":"https://github.com/ashar97/mysh","last_synced_at":"2026-04-30T19:31:57.540Z","repository":{"id":253671272,"uuid":"105359253","full_name":"AShar97/mysh","owner":"AShar97","description":"A simple shell in c. Period.","archived":false,"fork":false,"pushed_at":"2017-09-30T09:34:01.000Z","size":228,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T14:04:18.939Z","etag":null,"topics":["c","shell"],"latest_commit_sha":null,"homepage":null,"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/AShar97.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-09-30T09:31:16.000Z","updated_at":"2017-09-30T09:34:03.000Z","dependencies_parsed_at":"2024-08-18T17:51:58.065Z","dependency_job_id":"276279a1-264b-4706-8309-96595cd41664","html_url":"https://github.com/AShar97/mysh","commit_stats":null,"previous_names":["ashar97/mysh"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AShar97/mysh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AShar97%2Fmysh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AShar97%2Fmysh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AShar97%2Fmysh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AShar97%2Fmysh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AShar97","download_url":"https://codeload.github.com/AShar97/mysh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AShar97%2Fmysh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475191,"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":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["c","shell"],"created_at":"2024-11-12T03:23:16.262Z","updated_at":"2026-04-30T19:31:57.525Z","avatar_url":"https://github.com/AShar97.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysh\nThis is a readme file for MYSH : A simple shell created in c by Ayush, Yugansh \u0026 Ojasvin. Period.\n\n1) General Description\n2) Compiling\n3) Flow of control\n4) Other details\n\n---\n\n### 1) General Description\n\nThree main steps for a shell is:- \n1. Get the command from standard input.\n2. Parse it into arguments and function.\n3. Execute required job.\n\n### 2) Compiling\n\nExecute shell code by typing :-\n```shell\n$ make mysh\n```\n\nClean the output by typing :-\n```shell\n$ make clean\n```\n\n### 3) Flow of Control\n\nExecute shell code by typing :-\n```shell\n$ ./mysh\n```\n\nProgram begins with executing \"mysh_userinterface();\" in main(), which is a continuos loop, breaks on status FALSE. In this \"mysh_read_line(); \" reads a line from the keyboard, mysh_split_line() splits it into command + arguments amd \"mysh_execute();\" execute the command and looping continues until exit is encountered.\n\nIn mysh_execute() it runs two types of command one is builin and other is default terminal command. For eg, cd is a builtin command which cannot be executed by a child process forking system because it will only change the directory of the child process which executes it. Parent process directory is not changed.\n\n### 4) Other details\n\ntimerun command -- \u003e  this command is used to kill a running process after a particular time.\n\nSyntax :- timerun \u003ctime\u003e \u003cprocess_name\u003e \n\neg :-  timerun 2 ./a.out  \n\nthis command will execute ./a.out for two seconds and then kill it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashar97%2Fmysh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashar97%2Fmysh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashar97%2Fmysh/lists"}