1 #!/usr/bin/env bash
2
3 #### echo keyword
4 echo done
5 ## stdout: done
6
7 #### if/else
8 if false; then
9 echo THEN
10 else
11 echo ELSE
12 fi
13 ## stdout: ELSE
14
15 #### Turn an array into an integer.
16 a=(1 2 3)
17 (( a = 42 ))
18 echo $a
19 ## stdout: 42
20 ## N-I dash/ash stdout-json: ""
21 ## N-I dash/ash status: 2
22