{"id":21898189,"url":"https://github.com/minightdev/simple_shell","last_synced_at":"2025-07-11T07:04:03.674Z","repository":{"id":188531446,"uuid":"678915599","full_name":"MinightDev/simple_shell","owner":"MinightDev","description":"A custom shell implemented in C that supports executing commands, handling environment variables, and built-in commands like setenv, unsetenv, exit, and echo. It provides a basic interactive shell interface where you can enter commands and receive output.","archived":false,"fork":false,"pushed_at":"2023-08-24T01:11:38.000Z","size":30,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T23:13:26.944Z","etag":null,"topics":["c-lang","custom-shell","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/MinightDev.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-15T17:18:53.000Z","updated_at":"2025-02-03T17:41:45.000Z","dependencies_parsed_at":"2024-11-28T14:35:58.498Z","dependency_job_id":null,"html_url":"https://github.com/MinightDev/simple_shell","commit_stats":null,"previous_names":["minightdev/simple_shell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MinightDev/simple_shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinightDev%2Fsimple_shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinightDev%2Fsimple_shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinightDev%2Fsimple_shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinightDev%2Fsimple_shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MinightDev","download_url":"https://codeload.github.com/MinightDev/simple_shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MinightDev%2Fsimple_shell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264752121,"owners_count":23658554,"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-lang","custom-shell","shell"],"created_at":"2024-11-28T14:24:33.219Z","updated_at":"2025-07-11T07:04:03.633Z","avatar_url":"https://github.com/MinightDev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Shell\n\nA custom shell implemented in C that supports executing commands, handling environment variables, and built-in commands like `setenv`, `unsetenv`, `exit`, and `echo`. It provides a basic interactive shell interface where you can enter commands and receive output.\n\n## Features\n\n- Execute external commands and handle built-in commands.\n- Environment variable management with `setenv` and `unsetenv` commands.\n- Handle special environment variables like `$?` and `$$`.\n- Replace environment variables in strings using the `$` syntax.\n- Basic error handling and memory management.\n\n\n## Usage\n\nThe custom shell supports basic shell commands and built-in commands. You can execute external commands and use the built-in commands by typing them into the shell.\n\n## Compiling\n\nTo compile the shell, run\n\n```bash\ngcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh\n\n```\n\n\nExample of built-in commands:\n- `echo [text]`: Display text to the console.\n- `setenv [variable] [value]`: Set or update an environment variable.\n- `unsetenv [variable]`: Remove an environment variable.\n- `exit [status]`: Exit the shell with an optional status code.\n\nTo execute external commands, simply type the command name followed by any required arguments.\n\n## Notes\n\n- Built-in commands are handled within the shell program.\n- Environment variable expansion is supported using `$VARNAME` syntax.\n\nFeel free to explore this custom shell implementation according to your needs!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminightdev%2Fsimple_shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminightdev%2Fsimple_shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminightdev%2Fsimple_shell/lists"}