Warning: Work in progress! Leave feedback on Zulip or Github if you'd like this doc to be updated.

Oil Language vs. Shell

This doc aims to help shell users understand Oil.

If you don't know shell, see A Tour of the Oil Language.

Table of Contents
Strictness At Parse Time and Runtime
There Are 3 Core Sublanguages Instead of 4
Expressions Replace Arith and Bool
Command Language Differences
Word Language Differences
Runtime
Builtins
Shell Options, shvar, Registers
Big Feature Categories
Some Shell Features That Oil Retains
Related Links

Strictness At Parse Time and Runtime

There Are 3 Core Sublanguages Instead of 4

Expressions Replace Arith and Bool

So Many Shell Constructs Are Deprecated/Discouraged.

All of this is discouraged in favor of Oil expressions:

For details on the expression language, see Oil's Expression Language (under construction).

See Oil Languages Idioms for more rewrites.

Command Language Differences

See A Tour of Oil and Command Language for more details.

Word Language Differences

See A Tour of Oil and Word Language for more details.

Runtime

Builtins

Shell Options, shvar, Registers

Big Feature Categories

Some Shell Features That Oil Retains

Here's an incomplete list of bash features that are preserved:

Related Links


Generated on Sat Apr 30 21:44:54 EDT 2022