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.

See Also

eval, source