brush-shell 0.4.0

Rust-implemented shell focused on POSIX and bash compatibility
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
name: "Compound commands: arithmetic"
cases:
  - name: "Basic arithmetic statements"
    stdin: |
      ((0 == 0)) && echo "0 == 0"
      ((0 != 0)) && echo "0 != 0"

  - name: "Arithmetic statements with parens"
    stdin: |
      (( (0) )) && echo "0"
      (( (1) )) && echo "1"

  - name: "Arithmetic statements with parens and operators"
    stdin: |
      (( (0) == 0 )) && echo "0 == 0"
      (( (1) != 0 )) && echo "1 != 0"