Skip to content
andychu edited this page Dec 22, 2018 · 28 revisions

Why should anyone use OSH over bash?

  • More accurate interactive completion (TODO: link to post describing this)
  • Shell crash dumps. Implemented with OSH_CRASH_DUMP_DIR but not documented / deployed.
  • Lower latency with coprocesses. Prototyped, but not yet in OSH.
  • Better parse time and runtime error messages. The infrastructure is there, but it needs more polish.
  • Minor: OSH has a repr builtin which may aid in debugging.
  • Simpler configuration
    • No rat's nest of startup files. Easier to put in a dotfiles repo.

Maybe:

  • In addition to crash dumps, potentially better tracing (set -x and $PS4).

Not implemented:

  • Portable .rc files? To solve the admin problem on remote servers.
  • Migration path to a better language: Oil!
    • Could write inline function calls and expressions, e.g. echo $f(x, y)

Oil Carrots

It's too early for this since it isn't implemented :-/ There are some potential benefits listed on Why Create a New Unix Shell?

Clone this wiki locally