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

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