mrsh/include/builtin.h -rw-r--r-- 2.7 KiB
builtin: add exec implementation
builtin: add very basic trap implementation
Make mrsh_collect_vars private
build: add -Wmissing-prototypes
builtin/hash: new utility

This implements a minimal hash(1) utility, without any caching.
builtins: implement return
builtin/set: implement set -o to print all options
builtin: add very basic jobs implementation

This only displays a list of all jobs for now. No options are supported, the
status and current columns are only partially implemented.
Mostly implement break and continue builtins

The main thing that's missing here is moving the number of loops into
the call stack:


To prevent you from breaking out of your caller's loop in a function.
Implement 'wait' builtin
Add command -v builtin.
builtin: add bg
builtin: add fg
21468dfb — Cristian Adrián Ontivero 2 years ago
Rename *_func_t types to *_func

POSIX reserves the _t suffix, so it's advisable to avoid it.
Implemented ulimit builtin
Abort when unspecified commands are attempted
44efa8a8 — Ben Brown 2 years ago
Very basic umask implementation

Doesn't yet support the -S flag, or symbolic modes, but does allow for
getting and setting the umask.
Rename source builtin to dot

For consistency with POSIX
Don't use reserved identifiers for include guards
3c59ae46 — delthas 2 years ago
builtin/type: implement type builtin