Skip to main content

Crate reef

Crate reef 

Source
Expand description

Reef — bash compatibility layer for fish shell.

Provides bash detection, translation, passthrough execution, and a persistent bash coprocess daemon for seamless bash usage from fish.

§Modules

  • detect — fast heuristic for identifying bash-specific syntax
  • translate — bash-to-fish translation via AST
  • parser — recursive-descent bash parser (produces ast nodes)
  • ast — zero-copy abstract syntax tree types
  • passthrough — bash subprocess execution with environment diffing
  • daemon — persistent bash coprocess over a Unix domain socket
  • env_diff — environment snapshot capture and diffing
  • state — state file persistence for exported variables

Modules§

ast
Abstract syntax tree for bash commands.
daemon
Persistent bash coprocess daemon for reef persist full.
detect
Fast bash detection heuristic.
env_diff
Environment snapshot diffing for bash-to-fish variable sync.
lexer
Byte-oriented lexer for bash input.
parser
Recursive-descent parser for bash syntax.
passthrough
Bash command passthrough execution with environment diffing.
state
State file management for reef persist state mode.
translate
Bash-to-fish translator.