{"id":20350444,"url":"https://github.com/ekkoz897/42cursus_minishell","last_synced_at":"2026-04-12T07:32:10.436Z","repository":{"id":153330811,"uuid":"618071872","full_name":"Ekkoz897/42cursus_Minishell","owner":"Ekkoz897","description":" 42 - Rewrite a simple shell ","archived":false,"fork":false,"pushed_at":"2024-03-21T18:27:27.000Z","size":580,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T16:37:48.683Z","etag":null,"topics":["42","42born2code","42project","bash","minishell","minishell42","parsing","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/Ekkoz897.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}},"created_at":"2023-03-23T17:35:41.000Z","updated_at":"2024-03-21T18:24:02.000Z","dependencies_parsed_at":"2023-10-24T13:31:15.457Z","dependency_job_id":"9070da32-1606-4158-9320-256845e62c5d","html_url":"https://github.com/Ekkoz897/42cursus_Minishell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ekkoz897/42cursus_Minishell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ekkoz897%2F42cursus_Minishell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ekkoz897%2F42cursus_Minishell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ekkoz897%2F42cursus_Minishell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ekkoz897%2F42cursus_Minishell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ekkoz897","download_url":"https://codeload.github.com/Ekkoz897/42cursus_Minishell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ekkoz897%2F42cursus_Minishell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281726175,"owners_count":26550920,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"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":["42","42born2code","42project","bash","minishell","minishell42","parsing","shell"],"created_at":"2024-11-14T22:30:15.604Z","updated_at":"2025-10-30T00:44:06.482Z","avatar_url":"https://github.com/Ekkoz897.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 42-minishell\n\nThe objective of this project is to create a simple shell, like an own little bash.\u003cbr\u003e\nIt is the first group project in the 42 core curriculum. \n\n## Project specifications\n\nFor the project we were allowed to use GNU's readline library which handles the terminal interaction (history \u0026 input reading).\nFor everything else the subject allows only to use a few low-level functions and a few POSIX system calls.\n\n\u003cb\u003eAllowed functions:\u003c/b\u003e\n```readline, rl_clear_history, rl_on_new_line,rl_replace_line, rl_redisplay, add_history, printf, malloc, free, write, access, open, read,close, fork, wait, waitpid, wait3, wait4, signal, sigaction, sigemptyset, sigaddset, kill, exit, getcwd, chdir, stat, lstat, fstat, unlink, execve, dup, dup2, pipe, opendir, readdir, closedir, strerror, perror, isatty, ttyname, ttyslot, ioctl, getenv, tcsetattr, tcgetattr, tgetent, tgetflag, tgetnum, tgetstr, tgoto, tputs```\n\n## Features\n\n### Basics:\n- History of previous entered commands\n- Search and launch the right executable (based on the PATH variable, using a relative or an absolute path)\n- Environment variables ($ followed by a sequence of characters) expand to their values\n- Wildcards * in the current working directory\n- ctrl-C, ctrl-D and ctrl-\\ behave like in bash\n- ```’``` (single quotes - prevent from interpreting meta-characters in quoted sequence)\n- ```\"``` (double quotes - prevent from interpreting meta-characters in quoted sequence except for $)\n- ```$?``` expands to the last exit status\n- ```|``` connect cmds or groups with pipes; output of a cmd is connected to the input of the next cmd via a pipe\n- ```\u0026\u0026``` and ```||``` with parenthesis for priorities\n\n### Builtins:\n- ```echo``` with option -n\n- ```cd``` (relative or absolute path, ```-``` for OLDPWD, without arg for HOME)\n- ```pwd``` without options\n- ```export``` without options\n- ```unset``` without options\n- ```env``` without options\n- ```exit [exit_status]``` without options\n\n### Redirections:\n\n```[n]``` (optional) specifies the file descriptor, if not specified it is stdout/stdin\n\n- ```[n]\u003c file``` Redirecting Input\n- ```[n]\u003c\u003c limiter``` Here Documents\n- ```[n]\u003e file``` Redirecting Output\n- ```[n]\u003e\u003e file``` Appending Redirected Output\n\n## How to use\n\nThe current version of minishell is developed and tested on macOS, but it should work on all UNIX/LINUX based systems as well.\n\n\u003cb\u003eRequirements:\u003c/b\u003e\n- GCC / CLANG Compiler\n- GNU Make\n- GNU Readline library\n\n```\ngit clone https://github.com/Ekkoz897/42cursus_Minishell minishell\n```\n```\ncd minishell \u0026\u0026 make\n```\n```\n./minishell\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekkoz897%2F42cursus_minishell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekkoz897%2F42cursus_minishell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekkoz897%2F42cursus_minishell/lists"}