~emersion/mrsh

ref: job-control mrsh/main.c -rw-r--r-- 5.9 KiB
wip: job control
Error out when getcwd fails
Fix exit status
Source /etc/profile
Source ENV, only source ~/.profile if login shell

Fixes https://github.com/emersion/mrsh/issues/62
Fix continuation lines in interactive mode
parser: add mrsh_parser_from_buffer

This allows the user to share a buffer with the parser. This is especially
useful when managing manually how input lines are read (e.g. for interactive
shells). Before each mrsh_parse_line call, the user can fill the shared buffer
with the (maybe incomplete) input.

Fixes https://github.com/emersion/mrsh/issues/59
Move away from FILE

Fixes https://github.com/emersion/mrsh/issues/58
Fix memory leaks in main.c
Implement arg stack for functions
Fix memory leak in main.c
Add optional readline/libedit support

This adds support for line editing, history, etc, either with GNU
readline or BSD libedit. Also adds support for $PS2.
ad8a6edc — delthas 2 years ago
builtin/read: implement field splitting
625ff377 — delthas 2 years ago
builtin/getopts: implement getopts builtin
f4f0d822 — delthas 2 years ago
Implement pwd builtin
Introduce mrsh_variable
Do not source profile if non-interactive or -n
Print newline before exiting interactive session
builtin: introduce mrsh_process_args
Make mrsh_parse_line return an empty program on empty line
Next