Execute shell commands or scripts (POSIX shell name for bash).
Synopsis
sh [OPTIONS] [SCRIPT_FILE] [ARGUMENTS...]
Description
Runs the same just-bash WASM shell as bash, under the traditional POSIX name. Without -c, reads and executes commands from SCRIPT_FILE. Arguments are passed as $1, $2, etc.; $0 is set to the script name (or 'bash' with -c).
Options
-c COMMAND Execute COMMAND string.
--help Display help and exit.
Examples
$ sh -c 'echo hi'
Run a single command string.
$ sh script.sh
Run a script file.
Notes
sh and bash are the same implementation in SLICC; there is no separate, more limited POSIX shell.
See Also
bash, source