{"id":22880164,"url":"https://github.com/codedwells/simple_shell","last_synced_at":"2025-03-31T15:33:29.210Z","repository":{"id":109210279,"uuid":"534601533","full_name":"Codedwells/simple_shell","owner":"Codedwells","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-19T12:40:29.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T21:14:46.053Z","etag":null,"topics":[],"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/Codedwells.png","metadata":{"files":{"readme":"README.md","changelog":"history.c","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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-09T10:43:02.000Z","updated_at":"2022-09-09T11:54:21.000Z","dependencies_parsed_at":"2023-04-12T17:16:55.277Z","dependency_job_id":null,"html_url":"https://github.com/Codedwells/simple_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/Codedwells%2Fsimple_shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codedwells%2Fsimple_shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codedwells%2Fsimple_shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codedwells%2Fsimple_shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codedwells","download_url":"https://codeload.github.com/Codedwells/simple_shell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246489769,"owners_count":20785910,"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":[],"created_at":"2024-12-13T17:16:39.667Z","updated_at":"2025-03-31T15:33:29.187Z","avatar_url":"https://github.com/Codedwells.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![alt text](https://s3.amazonaws.com/intranet-projects-files/holbertonschool-low_level_programming/235/shell.jpeg)\n\n### Description\n\nShell is a simple UNIX command interpreter that replicates functionalities of the simple shell (sh). Additional functions are also included. This program was written entirely in C as a milestone project for ALX Africa Software Engineering.\n\n### Installation\n\nClone this repository into your working directory. For best results, files should be compiled with GCC and the following flags: -Wall -Wextra -Werror -pedantic -std=gnu89\n\n### Usage\n\nAfter compilation, the resulting program can run stand-alone, either in interactive or non-interactive mode.\n\n#### Interactive Mode\n\nIn interactive mode, simply run the program and wait for the prompt to appear. From there, you can type commands freely, exiting with either the \"exit\" command or ctrl-D.\n\n#### Non-Interactive Mode\n\nIn non-interactive mode, echo your desired command and pipe it into the program like this:\n\n```sh\necho \"ls\" | ./shell\n```\n\nIn non-interactive mode, the program will exit after finishing your desired command(s).\n\n#### Included Built-Ins\n\nOur shell has support for the following built-in commands:\n\n| Command             | Definition                                                                                |\n| ------------------- | ----------------------------------------------------------------------------------------- |\n| exit [n]            | Exit the shell, with an optional exit status, n.                                          |\n| env                 | Print the environment.                                                                    |\n| setenv [var][value] | Set an environment variable and value. If the variable exists, the value will be updated. |\n| unsetenv [var]      | Remove an environment variable.                                                           |\n| cd [dir]            | Change the directory.                                                                     |\n| help [built-in]     | Read documentation for a built-in.                                                        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedwells%2Fsimple_shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedwells%2Fsimple_shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedwells%2Fsimple_shell/lists"}