Replace assert(0) with abort()
This ensures functions reaching the asserts won't return, and avoids
issues with NDEBUG.
build: disable -Wformat-overflow
git.sr.ht annotations are deprecated
Nitpick details about buit-ins
* exec and trap are special built-ins
* Add remaining utilities as comments
* type now recognizes special built-ins
frontend: PATH_MAX includes the terminating null char
parser: consume final newline in expect_here_document
Fixes the last part of .
parser: consume symbol in expect_here_document
parser: parse here-documents after newline separator
Fixes part of .
ast: print here_document in print_io_redirect
parser: fix mrsh_parser.here_documents memory leak
Makefile: remove getopt.h from public_includes
Fixes 'make install' failing since getopt.h was made private
parser/word: add NULL guards to prevent segfault
ci: automate sr.ht annotations generation
Check error even when mrsh_parse_program returns non-NULL
In the future, I'd like to make mrsh_parse_program return the
partially-parsed program on error to allow interactive shells to provide
syntax highlighting while typing.
Only handle continuation lines when interactive
test: overhaul conformance tests
This introduces comprehensive conformance testing for section 2.2 of the
POSIX shell standard. However, note that mrsh does not currently pass
these new tests. For what it's worth, neither does dash.
parser/word: fix parser not failing on some errors in back-quotes
shell/task/simple_command: return 127 on command not found
parser: disable aliases when processing command substitutions