libdash
libdash copied to clipboard
The dash shell as a linkable library. Tracks https://git.kernel.org/pub/scm/utils/dash/dash.git, with extended interfaces, bindings for Python and OCaml, and tools for generating JSON representations...
libdash, by default, uses dash expansion prints the `PS1` and `PS2` in the dash prompt. This behavior is wrong (and possibly dangerous, depending on the use case). We should make...
Accept shell scripts as POST, return JSON. Should be super simple, à la `python -m http.server`.
Parsing and unparsing have super-linear runtime, largely because OCaml list append and string concatenation are not optimized. ### Parsing: **parse_tilde** quadratic (/cubic?) behavior ``` for n in 1000 2000 4000...
Right now ast.ml and shim.ml in smoosh are out of sync. It'd be great if there were only one copy of the code that converts dash's data structures to OCaml...
It would be good to document the AST clearly/well.
It has been tremendously painful working with ctypes: it's been hard to get things to work locally, nevermind in CI. Each OPAM version bump burns a day debugging linking issues....
See `test/failing/backslash` or `test/failing/aaaa_single` (which comes from @tucak's original bug report's reproducer (mgree/smoosh#5) for the bug resolved in #1). The problem is, depending on your perspective, in backslash insertion or...
- [x] Update to upstream - [ ] Fix CI scripts to avoid flakiness (??) - [x] Fix ocaml bindings #29
Describes the last missing part of https://github.com/binpash/pash/issues/671. Since shasta is now its own library, we need to make the following changes in libdash: - Import shasta - Return proper python...