Skip to content
andychu edited this page Apr 25, 2021 · 15 revisions

Back to Interactive Shell

Tips

  • Use run --push-globals -- myfunc to avoid clobbering $? and other VM globals.
    • Note that run also runs the function with errexit on, which is probably what you want.
    • TODO: should be provide a way to load a function ahead of time? Like --rcfile but doesn't replace the user's oshrc ?

Resources

TODO

  • Demo of how to pass a pipe, and e.g. dump JSON (is our json builtin stable? Or does read --json and read --qtt make more sense?)
  • Document "registers" ?
  • More docs on how to implement a headless client. Join #shell-gui on Zulip for discussion!
Clone this wiki locally