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:
parent
7f585bd0b2
commit
3518b7711d
16 changed files with 1964 additions and 3 deletions
|
|
@ -3,6 +3,8 @@
|
|||
(version "0.1.0")
|
||||
(description "A shell: POSIX command lines, job control, and built-in commands in Bjolang that pass values. Linux.")
|
||||
(license "MPL-2.0")
|
||||
;; A native executable too, src/main: a shell must start fast.
|
||||
(aot #t)
|
||||
|
||||
(depends
|
||||
;; The line editor and the terminal. On disk until it has a remote.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue