aboutsummaryrefslogtreecommitdiff
path: root/sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* common.mk, sh/Makefile: s/$(NOLINKER)/-c/gHEADmasterRunxi Yu2024-07-271-1/+1
| | | | | I previously changed this in the main Makefile but forgot to port it over to the other Makefiles.
* treewide: readd copyrightsFerass El Hafidi2023-04-106-0/+19
| | | | Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
* all: use SPDX identifiers and add a new MAINTAINERS file.Ferass El Hafidi2023-02-166-169/+6
| | | | Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
* sh: shorten commentsFerass El Hafidi2023-02-022-22/+5
| | | | Signed-off-by: Ferass El Hafidi <vitali64pmemail@protonmail.com>
* *: Update Copyright dateFerass 'Vitali64' EL HAFIDI2023-01-052-2/+2
| | | | 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-052-11/+2
| | | | | | 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-106-73/+139
| | | | | | to the new mailing list Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Fix error handling.Ferass 'Vitali64' EL HAFIDI2022-10-152-6/+6
| | | | 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-142-4/+3
| | | | 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 support for commentsFerass 'Vitali64' EL HAFIDI2022-10-131-1/+5
| | | | | | | | | | Example: $ echo 'Hello World' # Hello World This is now possible. 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-132-7/+21
| | | | | | 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-122-22/+37
| | | | | | segfaults. Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
* sh: Add a built-in test command.Ferass 'Vitali64' EL HAFIDI2022-10-064-4/+68
| | | | 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-204-0/+245
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>