{"id":28646850,"url":"https://github.com/yekuuun/tinyshell","last_synced_at":"2025-06-13T02:08:10.852Z","repository":{"id":294477593,"uuid":"985434277","full_name":"Yekuuun/tinyshell","owner":"Yekuuun","description":"aiming to recreate a minimalist shell for fun","archived":false,"fork":false,"pushed_at":"2025-05-28T12:34:30.000Z","size":155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-28T12:38:36.817Z","etag":null,"topics":["c","linux","make","minishell"],"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/Yekuuun.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,"zenodo":null}},"created_at":"2025-05-17T18:51:56.000Z","updated_at":"2025-05-28T12:34:34.000Z","dependencies_parsed_at":"2025-05-20T16:34:44.640Z","dependency_job_id":"66be1655-9ff6-435f-9d6d-10ef275c91b2","html_url":"https://github.com/Yekuuun/tinyshell","commit_stats":null,"previous_names":["yekuuun/tinyshell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Yekuuun/tinyshell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yekuuun%2Ftinyshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yekuuun%2Ftinyshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yekuuun%2Ftinyshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yekuuun%2Ftinyshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yekuuun","download_url":"https://codeload.github.com/Yekuuun/tinyshell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yekuuun%2Ftinyshell/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259565577,"owners_count":22877348,"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","linux","make","minishell"],"created_at":"2025-06-13T02:08:08.616Z","updated_at":"2025-06-13T02:08:10.842Z","avatar_url":"https://github.com/Yekuuun.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"```C\n\n                             _____ _             ____  _          _ _ \n                            |_   _(_)_ __  _   _/ ___|| |__   ___| | |\n                              | | | | '_ \\| | | \\___ \\| '_ \\ / _ \\ | |\n                              | | | | | | | |_| |___) | | | |  __/ | |\n                              |_| |_|_| |_|\\__, |____/|_| |_|\\___|_|_|\n                                           |___/\n\n                               --a minimalist shell made from scratch--\n\n```\n\n**TinyShell** is a minimal \u0026 custom-built Unix shell written in pure C. It represent my first \"unix\" project after switching from Windows dev. It supports essential shell functionnalities with builtin commands \u0026 custom binaries.\n\n\u003e[!Important]\n\u003eThis repo contains samples I wroted. It may not be perfect so don't blame me if you see potentials errors.\n\n\u003e[!Warning]\n\u003eI had habit to use C under windows env so don't blame me if you see Windows synthax haha.\n\n## ✨ Core features \n\n🟢 **Command lexing \u0026 parsing** : using lexer synhtax interpretation + quote handling + AST implementation for commands parsing.\n\n🟢 **Signals interruptions handling** : handling interruptions like CTRL-c etc.\n\n🟢 **Builtin functions** : base builtins functions `exit, echo, clear, history, pwd`\n\n🟢 **Working on custom core functions** like `ls, cat, mkdir, touch` etc for bringing more fun calling custom binaries like a real shell.\n\n🟢 **Command execution** : main core command execution using native programs \u0026 custom programs. =\u003e execvp usage.\n\n🟢 **Root detection** : detects if current user is in root mode\n\n🔴 **Handling more options** : \u003e\u003e, \u003c\u003c, \u0026\u0026\n\n🔴 **Handling env** : Handling environment variables\n\n🔴 **Auto-completion** : adding auto-completion with tab\n\n\n\u003cbr\u003e\n\n## ▶️ Running tinyshell \n\n`make \u0026\u0026 ./tinyshell`\n\n\u003cbr\u003e\n\n\u003cimg src=\"https://github.com/Yekuuun/tinyshell/blob/main/assets/demo.png\" alt=\"DebugInfo\" /\u003e\n\n## Links \u0026 ressources\n\n\u003ca href=\"https://github.com/zwan074/technical-books/blob/master/Advanced.Programming.in.the.UNIX.Environment.3rd.Edition.0321637739.pdf\" target=\"_blank\"\u003eAdvanced programming in the unix environment\u003c/a\u003e\n\n\u003ca href=\"https://m4nnb3ll.medium.com/minishell-building-a-mini-bash-a-42-project-b55a10598218\" target=\"_blank\"\u003eManBell 42 minishell project\u003c/a\u003e\n\n\u003ca href=\"https://medium.com/basecs/leveling-up-ones-parsing-game-with-asts-d7a6fc2400ff\" target=\"_blank\"\u003eAST Algorithm\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyekuuun%2Ftinyshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyekuuun%2Ftinyshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyekuuun%2Ftinyshell/lists"}