# bjosh A shell in Bjolang. The design and the phases are in `plan.org`. ## Comments Write clear, direct engineering comments, as in the Bjolang repo's CLAUDE.md: "returns" and "raises", contracts and invariants, bullets for non-trivial functions. No essays. ## This package - `bjo build` builds the shell: `src/main.exe`, and the native `src/main` (`(aot #t)`). - `bjo test` runs the tests. `tests/run.bjo` and `tests/interactive.bjo` run `src/main.exe`, so run `bjo build` first. - It depends on bjoterm at `../bjoterm`. A change there needs `bjo build` here. - Modules: - `(bjosh syntax)`: the parser, with `(text parser-combinators)`. - `(bjosh expand)`: variables, `~` and globs. - `(bjosh shell)`: the state, variables and the job table. - `(bjosh builtins)`: the shell commands. - `(bjosh exec)`: lines to `(std run)` forms and jobs. - `(bjosh editor)`: when Enter runs a line, and the completer. - Tests: - `tests/syntax.bjo`, `tests/expand.bjo`, `tests/editor.bjo`: unit tests. - `tests/run.bjo`: lines through `bjosh -c`, a file, and stdin. - `tests/interactive.bjo`: job control and the prompt under `script`.