{"id":18249773,"url":"https://github.com/uael/42sh","last_synced_at":"2025-04-04T16:30:52.309Z","repository":{"id":71336957,"uuid":"112379278","full_name":"uael/42sh","owner":"uael","description":"42 shell school project, support for job-control, shell script, globbing, aliases, ..","archived":false,"fork":false,"pushed_at":"2018-03-28T13:04:26.000Z","size":1692,"stargazers_count":18,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-30T06:07:51.342Z","etag":null,"topics":["c","job-control","shell","shell-script"],"latest_commit_sha":null,"homepage":"https://www.42.fr","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uael.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,"publiccode":null,"codemeta":null}},"created_at":"2017-11-28T19:27:15.000Z","updated_at":"2025-02-19T22:54:59.000Z","dependencies_parsed_at":"2023-02-23T09:45:57.527Z","dependency_job_id":null,"html_url":"https://github.com/uael/42sh","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uael%2F42sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uael%2F42sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uael%2F42sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uael%2F42sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uael","download_url":"https://codeload.github.com/uael/42sh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247209255,"owners_count":20901733,"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","job-control","shell","shell-script"],"created_at":"2024-11-05T09:41:16.743Z","updated_at":"2025-04-04T16:30:52.302Z","avatar_url":"https://github.com/uael.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 42sh\n[![Build Status](https://travis-ci.org/uael/42sh.svg?branch=master)](https://travis-ci.org/uael/42sh)\n\n## Grade:\n##### 125/100 (outstanding project * 5)\n\n## Subject:\n\n[Subject](https://cdn.intra.42.fr/pdf/pdf/183/42sh.fr.pdf)\n\n## Mandatory part:\n- [x] Prompt without line edition.\n- [x] Builtins `cd`, `echo`, `exit`, `env`, `setenv`, `unsetenv` with there options.\n- [x] Executing simple commands with there parameters using `PATH`.\n- [x] Support for redirection `\u003e`, `\u003e\u003e`, `\u003c`and `|`.\n- [x] Logical operand `\u0026\u0026`and `||`.\n- [x] Separator `;`.\n\n## Optional feature (five of theses are mandatory to validate the project):\n- [x] Inhibitors `\"`, `'`and `\\`.\n- [x] Advanced redirections: aggregation of file output and heredoc `\u003c\u003c`.\n- [x] Globbing: `*`, `?`, `[]`, `{}`, etc.\n- [x] Backquotes \\`.\n- [x] Subshell with operand `()`.\n- [x] Local variable and builtin `unset` and `export`.\n- [x] History with builtin `history`and `!` with options.\n- [x] Advanced line edition.\n- [x] File descriptors and builtin `read` with options.\n- [x] Dynamical autocompletion.\n\n## Optional feature highly appreciated:\n- [x] Job Control and builtins `job`, `fg`, `bg` and operand `\u0026`.\n- [X] Shell Scripting: bang (!), variable assignements, brace group, if, while, until, for and functions\n\n## Bonuses\n- [X] Advanced dollar expansion `$(..)`, `$((..))`, `$[..]`\n- [X] Tilde expansion `~`, `~\u003cusername\u003e`, `~-`, `~+`\n- [X] Range expansion `{\u003cSTART\u003e..\u003cEND\u003e}` and `{\u003cSTART\u003e..\u003cEND\u003e..\u003cINCREMENT\u003e}`\n- [X] Advanced redirections operator `\u0026\u003e`, `\u0026\u003e\u003e`, `\u003c\u003e`, `\u003c\u003c\u003c` and `|\u0026`\n- [X] Aliases, builtin alias `alias [-p] [name[=value] …]` and expansion\n- [X] Builtin env advanced options `-u name` and `[name=value]`\n- [X] Inline variables `[name=value] binary [arguments...]`\n- [X] Binary hashtable\n- [X] Rights in the PATH\n\n## Usage\n```\nUsage: ./42sh [option] [script-file] [script arguments...]\nush options:\n\t--help: this *useful* help message!\nush keymap:\n\t\u003cctrl+A|home\u003e: Go to begin of line.\n\t\u003cctrl+E|end\u003e: Go to end of line.\n\t\u003cctrl+V\u003e: Enter visual mode.\n\t\u003cctrl+Y\u003e: Yank in visual mode.\n\t\u003cctrl+P\u003e: Paste.\n\t\u003cctrl+D\u003e: Exit or delete in visual mode.\n\t\u003cctrl+C\u003e: Cancel line edition.\n\t\u003cctrl+L\u003e: Clear the screen.\n\t\u003cshift+[left|right]\u003e: Move per word.\n\t\u003cshift+[up|down]\u003e: Move per line.\n\t\u003cup\u003e: Go up in the history.\n\t\u003cdown\u003e: Go down in the history.\n\t!!: Retype the last command.\n\t!n: Retype the n command from the begin of history.\n\t!-n: Retype the -n command from the last command.\n\t!name: Search for a command beginning with name.\n```  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuael%2F42sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuael%2F42sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuael%2F42sh/lists"}