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

16 lines, 13 significant
1
2 Word Language <a class="group-link" href="chap-word-lang.html">word-lang</a>
3
4
5 [Quotes] osh-string 'abc' $'line\n' "$var"
6 [Substitutions] command-sub $(command) `command`
7 var-sub ${var} $0 $9
8 arith-sub $((1 + 2))
9 tilde-sub ~/src
10 proc-sub diff <(sort L.txt) <(sort R.txt)
11 [Var Ops] op-test ${x:-default}
12 op-strip ${x%%suffix} etc.
13 op-replace ${x//y/z}
14 op-index ${a[i+1}
15 op-slice ${a[@]:0:1}
16 op-format ${x@P}