Phase 3: $(...), aliases, a start-up file, PROMPT, Done lines, >&2
- $(...) runs in a subshell. A word that is only an unquoted $(...) is one word per line. X=$(cmd) sets $? to its status. - alias, unalias, and command NAME. An alias is one pipe. - ~/.config/bjosh/rc runs before the first prompt. - PROMPT, expanded as in double quotes, with \w \W \u \h \$ \e \n. - "Done" lines are written above the input while the prompt waits. - >&2, for programs and value commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f54ceb35af
commit
f8c4ad64bc
13 changed files with 680 additions and 128 deletions
10
AGENTS.md
10
AGENTS.md
|
|
@ -18,10 +18,11 @@ non-trivial functions. No essays.
|
|||
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 expand)`: variables, `~`, `$(...)` and globs.
|
||||
- `(bjosh shell)`: the state, variables, aliases and the job table.
|
||||
- `(bjosh builtins)`: the shell commands.
|
||||
- `(bjosh exec)`: lines to `(std run)` forms and jobs.
|
||||
- `(bjosh exec)`: lines to `(std run)` forms and jobs, aliases, and
|
||||
the subshell of `$(...)`.
|
||||
- `(bjosh values)`: values (`Json`), streams of them, text and tables.
|
||||
- `(bjosh commands)`: the value commands, and their table.
|
||||
- `(bjosh pipeline)`: value commands next to each other, as one unit.
|
||||
|
|
@ -30,4 +31,5 @@ non-trivial functions. No essays.
|
|||
- `tests/syntax.bjo`, `tests/expand.bjo`, `tests/editor.bjo`: unit tests.
|
||||
- `tests/run.bjo`: lines through `bjosh -c`, a file, and stdin.
|
||||
- `tests/values.bjo`: the value commands through `bjosh -c`.
|
||||
- `tests/interactive.bjo`: job control and the prompt under `script`.
|
||||
- `tests/interactive.bjo`: job control, the prompt and the start-up
|
||||
file under `script`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue