OILS / _devbuild / help / osh-mini-lang View on Github | oilshell.org

21 lines, 18 significant
1
2 Other Mini Languages <a class="group-link" href="chap-mini-lang.html">mini-lang</a>
3
4
5 [Arithmetic] arith-context Where legacy arithmetic is allowed
6 sh-numbers 0xFF 0755 etc.
7 sh-arith 1 + 2*3 a *= 2
8 sh-logical !a && b
9 sh-bitwise ~a ^ b
10 [Boolean] bool-expr [[ ! $x && $y || $z ]]
11 test ! $x -a $y -o $z
12 bool-infix [[ $a -nt $b ]] [[ $x == $y ]]
13 bool-path [[ -d /etc ]]
14 bool-str [[ -z '' ]]
15 bool-other [[ -o errexit ]]
16 [Patterns] glob-pat *.py
17 extglob ,(*.py|*.sh)
18 regex [[ foo =~ [a-z]+ ]]
19 [Other Sublang] braces {alice,bob}@example.com
20 histsub !$ !! !n
21 char-escapes \t \c \x00 \u03bc