Phase 1: POSIX command lines, job control and the prompt

- (bjosh syntax): a part of POSIX sh, parsed with (text
  parser-combinators). Syntax that is not supported raises an error that
  names it.
- (bjosh expand): variables, ~ and globs. Values are not split.
- (bjosh exec): pipes as (std run) jobs, && || ; &, redirections, and
  NAME=value through env.
- (bjosh shell) and (bjosh builtins): the job table and cd, pwd, exit,
  export, unset, jobs, fg, bg, kill, type, help, history.
- (bjosh editor): Enter waits for open quotes and trailing operators;
  completion of commands and files.
- -c LINE, FILE, and stdin. A Native AOT build too.
- Tests: the parser, expansion, the editor, lines through -c, and job
  control under script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Linus Björnstam 2026-12-01 06:19:45 +01:00
parent 7f585bd0b2
commit 3518b7711d
16 changed files with 1964 additions and 3 deletions

3
.gitignore vendored
View file

@ -6,3 +6,6 @@ publish/
*.bjobuild
*.runtimeconfig.json
*.deps.json
/src/main
/tests/*
!/tests/*.bjo