{"id":20230005,"url":"https://github.com/dsite42/minishell","last_synced_at":"2026-05-10T01:18:22.120Z","repository":{"id":211697425,"uuid":"640960093","full_name":"Dsite42/minishell","owner":"Dsite42","description":"42 project - minishell - This project involves creating a simplified version of a Unix shell.","archived":false,"fork":false,"pushed_at":"2023-12-10T08:16:54.000Z","size":1767,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T00:14:41.091Z","etag":null,"topics":["42","minishell","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/Dsite42.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}},"created_at":"2023-05-15T13:37:26.000Z","updated_at":"2023-12-10T08:20:20.000Z","dependencies_parsed_at":"2023-12-10T10:25:54.294Z","dependency_job_id":"dc878df9-e508-4133-b9d8-279cbf727d79","html_url":"https://github.com/Dsite42/minishell","commit_stats":null,"previous_names":["dsite42/minishell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsite42%2Fminishell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsite42%2Fminishell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsite42%2Fminishell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dsite42%2Fminishell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dsite42","download_url":"https://codeload.github.com/Dsite42/minishell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241671819,"owners_count":20000669,"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":["42","minishell","shell"],"created_at":"2024-11-14T07:37:50.636Z","updated_at":"2026-05-10T01:18:22.077Z","avatar_url":"https://github.com/Dsite42.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minishell\n\nThe Minishell project involves creating a simplified version of a Unix shell.\n\nIt requires implementing basic shell features like displaying a prompt, handling command history, and executing programs based on the PATH environment variable.\n\nThe project focuses on handling special characters, quotes, implementing redirections, pipes, and managing environment variables.\n\nIt also requires implementing a few built-in commands like echo, cd, pwd, export, unset, env, and exit.\n\nAdditionally, the project deals with signal handling, specifically for ctrl-C, ctrl-D, and ctrl-\\.\n\n## Features\n\n- **Prompt Display:** Displays a prompt when waiting for new commands.\n- **Command History:** Maintains a working history of commands.\n- **Executable Search:** Searches and launches executables based on PATH or given paths.\n- **Global Variable Limitation:** Utilizes no more than one global variable.\n- **Special Characters:** Does not interpret unclosed quotes or non-essential special characters like `\\` or `;`.\n- **Quotes Handling:**\n  - Single quotes `'` prevent meta-character interpretation.\n  - Double quotes `\"` prevent meta-character interpretation except for `$`.\n- **Redirections:**\n  - `\u003c`: Redirects input.\n  - `\u003e`: Redirects output.\n  - `\u003c\u003c`: Reads input until a line containing the given delimiter.\n  - `\u003e\u003e`: Redirects output in append mode.\n- **Pipes:** Implements pipes (`|`) where output of one command is piped as input to the next.\n- **Environment Variables:** Handles expansion of environment variables (`$`).\n- **Exit Status:** `$?` expands to the exit status of the most recently executed foreground pipeline.\n- **Signal Handling:**\n  - `ctrl-C`: Displays a new prompt on a new line.\n  - `ctrl-D`: Exits the shell.\n  - `ctrl-\\`: No action.\n- **Builtins:**\n  - `echo` with `-n`\n  - `cd` with relative or absolute path\n  - `pwd` with no options\n  - `export` with no options\n  - `unset` with no options\n  - `env` with no options or arguments\n  - `exit` with no options\n\n\n![minishell subject table](https://github.com/Dsite42/minishell/blob/master/minishell%20subject%20table.jpg)\n\n[Subject PDF](minishell%20subject.pdf)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsite42%2Fminishell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsite42%2Fminishell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsite42%2Fminishell/lists"}