Execute shell commands or scripts.
Synopsis
bash [OPTIONS] [SCRIPT_FILE] [ARGUMENTS...]
Description
Runs the just-bash WASM shell used throughout SLICC. Without -c, reads and executes commands from SCRIPT_FILE. Arguments are passed as $1, $2, etc. to the script; $0 is set to the script name (or 'bash' with -c).
Options
-c COMMAND Execute COMMAND string.
--help Display help and exit.
Examples
$ bash -c 'echo hello'
Run a single command string.
$ bash script.sh arg1 arg2
Run a script file with positional arguments.
Notes
This is just-bash, a bash-compatible WASM shell operating on the SLICC virtual filesystem, not a native OS bash. sh is the same implementation invoked under a POSIX-shell-flavored name.
See Also
sh, source, exec