-
-
Notifications
You must be signed in to change notification settings - Fork 154
Headless Mode
andychu edited this page Apr 24, 2021
·
15 revisions
Back to Interactive Shell
- Use
run --push-status myfunc
to avoid clobbering$?
.- Note that
run
also runs the function witherrexit
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'soshrc
?
- Note that
- https://www.oilshell.org/release/latest/doc/headless.html
- Shell as an Engine for a GUI or TUI: https://github.com/oilshell/oil/issues/738
- web_shell prototype: https://github.com/subhav/web_shell/blob/master/command_server.sh
- descriptor passing would be nice. Uses LD_PRELOAD to trick bash into thinking it's running from a terminal.
-
#shell-gui
on Zulip has many discussions: https://oilshell.zulipchat.com/#narrow/stream/266977-shell-gui
- More docs on how to implement a headless client. Join
#shell-gui
on Zulip for discussion!