{"id":24062393,"url":"https://github.com/42mates/minishell","last_synced_at":"2026-05-01T20:33:01.298Z","repository":{"id":231574852,"uuid":"782057043","full_name":"42mates/minishell","owner":"42mates","description":"Repo for the Minishell project from 42 school by @marinsucks and @ku-alexej.","archived":false,"fork":false,"pushed_at":"2024-04-12T15:44:09.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-04-12T23:07:22.749Z","etag":null,"topics":["bash","c","shell"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/42mates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-04-04T14:56:53.000Z","updated_at":"2024-04-15T14:07:09.180Z","dependencies_parsed_at":"2024-04-15T14:17:47.537Z","dependency_job_id":null,"html_url":"https://github.com/42mates/minishell","commit_stats":null,"previous_names":["42mates/minishell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/42mates/minishell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/42mates%2Fminishell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/42mates%2Fminishell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/42mates%2Fminishell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/42mates%2Fminishell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/42mates","download_url":"https://codeload.github.com/42mates/minishell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/42mates%2Fminishell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512665,"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":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash","c","shell"],"created_at":"2025-01-09T08:40:13.438Z","updated_at":"2026-05-01T20:33:01.266Z","avatar_url":"https://github.com/42mates.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minishell\n\nThis is the repository for 42's Minishell project made by [@ku-alexej](https://github.com/ku-alexej) and [@marinsucks](https://github.com/marinsucks).\n\n## Description\n\nMinishell is a simplified version of a shell, implementing some of the basic functionalities of the Bash POSIX shell. It supports executing commands, handling environment variables, basic and managing processes.\n\n## Features\n\nMinishell supports the following features:\n- [Command Execution](#command-execution)\n- [Signal Handling](#signal-handling)\n- [Environment Variables](#environment-variables)\n- [Quoting](#quoting)\n- [Redirections and Pipes](#redirections-and-pipes)\n- [Builtins](#builtins)\n\n\n#### Command Execution: \nCommands can be executed with or without arguments from absolute and relative paths as well as directories included in the `PATH` environment variable.\n\n#### Signal Handling:\n\n- __ctrl-C__ sends a SIGINT signal to interrupt the running process.   \n- __ctrl-D__ sends and End Of File (EOF) signal.  \n- __ctrl-\\\\__ quits a running process.\n\n#### Environment Variables:\nEnvironment variables can be used in any command as `$` followed by the variable name. They can be manipulated using the [`export`](#builtins) and [`unset`](#builtins) builtins. These variables are inherited from the parent process and sent to the child processes. `$?`, which expands to the exit status of the last executed command, is also supported.\n\n#### Quoting: \nMinishell handles single quotes `'` and double quotes `\"` which prevent the shell from interpreting the meta-characters in the quoted sequence, except for environment variables inside double quotes (`echo \"$USER\"` prints the username, while `echo '$USER'` simply prints $USER).\n\n#### Redirections and Pipes: \n- `\u003c` for input\n- `\u003c\u003c[delimiter]` for reading input until a line containing the delimiter is seen\n- `\u003e` for output\n- `\u003e\u003e` for appending output.\n- `|` for the pipe, where the output of the left command is sent to the input of the right command.\n\n#### Builtins\n- `echo` prints its arguments followed by a newline. The  `-n` option suppresses the newline at the end.\n- `cd` changes the current directory and accpets absolute and relative paths. \n- `pwd` prints the current working directory.\n- `export` sets its arguments to environment variables, or prints all environment variables if no argument is provided.\n- `unset` removes the specified environment variables.\n- `env` prints the environment variables which values aren't NULL.\n- `exit` terminates the process with the specified exit code.\n\n\n## Getting Started\n\nTo get started with Minishell, follow these steps:\n\n1. Clone the repository:\n\t```bash\n\tgit clone https://github.com/42mates/minishell.git; cd minishell\n\t```\n\n2. Build the project:\n\t```bash\n\tmake\n\t```\n\n3. Run Minishell:\n\t```bash\n\t./minishell\n\t```\n\n### Note:\nThe project uses the `readline` library for line editing. Functions from this library can cause memory leaks when used with `valgrind`. To avoid this, run the program with the following command from the project's root directory:\n```bash\nvalgrind --suppressions=$PWD/readline.supp ./minishell\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F42mates%2Fminishell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F42mates%2Fminishell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F42mates%2Fminishell/lists"}