OSH
Section: User Commands (1)
Page Index
BSD mandoc
NAME
osh
- command language interpreter
SYNOPSIS
[
options
]
script
[
args
]
[
options
]
-
c
[command_string]
[args]
DESCRIPTION
The
utility is a
bash(1)Ns-compatible
command language intepreter:
it reads commands either from standard input, a
script
file or command-line arguments and executes them.
accepts POSIX
sh(1)
arguments, with the following differences:
- -n
-
Only validate the syntax.
Also prints the AST.
- --ast-format
-
What format the AST should be in.
ENVIRONMENT
- OSH_HIJACK_SHEBANG
-
- OSH_CRASH_DUMP_DIR
-
FILES
The interactive shell only sources
~/.config/oil/oshrc
on startup.
EXIT STATUS
The
utility exits with one of the following values:
- 1
-
One or more runtime errors occurred.
- 2
-
One or more parsing errors occurred,
either due to incorrect script syntax or improper invocation of a shell
builtin.
- 126
-
Permission was denied when running a command.
- 127
-
The referenced command or script could not be found.
SEE ALSO
bash(1),
busybox(1),
sh(1)
Lk http://www.oilshell.org/release/0.8.9/doc/ Docs
AUTHORS
The
utility was written by
An Andy Chu Aq Mt
andy@oilshell.org