aboutsummaryrefslogtreecommitdiff
path: root/sh/sh.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* treewide: readd copyrightsFerass El Hafidi2023-04-101-0/+3
| | | | Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
* all: use SPDX identifiers and add a new MAINTAINERS file.Ferass El Hafidi2023-02-161-28/+1
| | | | Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
* sh: shorten commentsFerass El Hafidi2023-02-021-8/+3
| | | | Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
* *: Update Copyright dateFerass 'Vitali64' EL HAFIDI2023-01-051-1/+1
| | | | Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* (happy new year!) sh: Fix compiler errors && core/: Move print_usage to ↵Ferass 'Vitali64' EL HAFIDI2023-01-051-11/+1
| | | | | | common.h and add errprint() Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* Relicense fases core under the 3BSD && Convert all manpages to scdoc && Link ↵Ferass 'Vitali64' EL HAFIDI2022-11-101-12/+23
| | | | | | to the new mailing list Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Fix error handling.Ferass 'Vitali64' EL HAFIDI2022-10-151-2/+1
| | | | Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Remove debugging junk and add a link to the POSIX sh specification.Ferass 'Vitali64' EL HAFIDI2022-10-151-2/+3
| | | | Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Fix a weird bug before adding support for &&.Ferass 'Vitali64' EL HAFIDI2022-10-151-3/+9
| | | | Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Move error handling to parseCommand()Ferass 'Vitali64' EL HAFIDI2022-10-141-2/+1
| | | | Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Add support for being able to run multiple commands in a single line using ;Ferass 'Vitali64' EL HAFIDI2022-10-131-3/+13
| | | | | | | | | | Example: $ echo Hello;echo World This will work. Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Add the ability to finally run commands from a file! && Fix weird error ↵Ferass 'Vitali64' EL HAFIDI2022-10-131-4/+15
| | | | | | handling Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Move the command runner mechanism to a separate function && fix various ↵Ferass 'Vitali64' EL HAFIDI2022-10-121-19/+7
| | | | | | segfaults. Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Add a built-in test command.Ferass 'Vitali64' EL HAFIDI2022-10-061-2/+2
| | | | Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Fix gcc error && reinitialise `command` && Do not ignore SIGINT when in ↵Ferass 'Vitali64' EL HAFIDI2022-08-311-3/+10
| | | | | | a child process. Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Ignore SIGINT && Add a compiler warning && rename needprompt && use ↵Ferass 'Vitali64' EL HAFIDI2022-08-211-4/+18
| | | | | | strerror() Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* Add a WIP implementation of sh.Ferass 'Vitali64' EL HAFIDI2022-08-201-0/+112
This sh implementation is currently only able to run basic commands and is also quite buggy. The codebase can already run built-in commands however, so implementing built-in commands should be quite easy. Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>