Replace the shell with a command.
Synopsis
exec [COMMAND [ARGUMENTS]]
Description
Replace the current shell process with COMMAND. If no command is given, redirections take effect in the current shell. Runs in the just-bash WASM shell inside SLICC.
Examples
$ exec node script.js
Replace the shell with node running script.js.
Notes
In SLICC's shell, exec simulates process replacement.
This bash builtin is unrelated to the exec capability module inside .jsh scripts and node -e. There is no bare exec() global inside the JS realm — it must be pulled in explicitly with require('sliccy:exec'). See man jsh and man node for the current sliccy: module scheme.