View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View
@@ -64,6 +64,16 @@ OSH is a shell.
#### <Usage> Usage
### <bundle-usage> Usage of the Oil App Bundle
Usage: oil.ovm MAIN_NAME [ARG]...
MAIN_NAME [ARG]...
oil.ovm behaves like busybox. If it's invoked through a symlink, e.g. 'osh',
then it behaves like that binary. Otherwise the binary name can be passed as
the first argument, e.g.:
oil.ovm osh -c 'echo hi'
### <osh-usage> Usage of the OSH Binary
Usage: osh [OPTION]... SCRIPT [ARG]...
osh [OPTION]... -c COMMAND [ARG]...
@@ -77,15 +87,10 @@ osh accepts POSIX sh flags, with the following differences:
## Same as osh --help, man osh
### <oil-usage> Usage of the Oil Binary
Usage: oil MAIN_NAME [ARG]...
MAIN_NAME [ARG]...
oil behaves like busybox. If it's invoked through a symlink, e.g. 'osh', then
it behaves like that binary. Otherwise the binary name can be passed as the
first argument, e.g.:
oil osh -c 'echo hi'
Usage: oil [OPTION]... SCRIPT [ARG]...
oil [OPTION]... -c COMMAND [ARG]...
TODO: any changes?
## Same as oil --help, man oil
### <config> Configuration Files
View
@@ -6,8 +6,8 @@ OSH Quick Reference
INTRO
[Overview] overview osh-vs-oil command-vs-expr
[Usage] osh-usage oil-usage config startup line-editing
prompt
[Usage] bundle-usage osh-usage oil-usage config startup
line-editing prompt
[Lexing] comments # line-continuation \
[Oil Lexing] single-command % docstring?
View
@@ -109,9 +109,18 @@ ast() {
help() {
set +o errexit
bin/oil osh --help
# Bundle usage.
bin/oil.py --help
assert $? -eq 0
# Pass applet as first name.
bin/oil.py osh --help
assert $? -eq 0
bin/oil.py oil --help
assert $? -eq 0
# Symlinks.
bin/osh --help
assert $? -eq 0