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

20 lines, 19 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] dbracket [[ vs. the test builtin
9 bool-expr [[ ! $x && $y || $z ]]
10 test ! $x -a $y -o $z
11 bool-infix [[ $a -nt $b ]] [[ $x == $y ]]
12 bool-path [[ -d /etc ]]
13 bool-str [[ -z '' ]]
14 bool-other [[ -o errexit ]]
15 [Patterns] glob-pat *.py
16 extglob ,(*.py|*.sh)
17 regex [[ foo =~ [a-z]+ ]]
18 [Other Sublang] braces {alice,bob}@example.com
19 histsub !$ !! !n
20 char-escapes \t \c \x00 \u03bc