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
17
name: "Process"
common_test_files:
  - path: "process-helpers.sh"
    source_path: "../../utils/process-helpers.sh"

cases:
  - name: "Basic process"
    stdin: |
      # TODO(jobs): Figure out how to make this work elsewhere
      if [[ "$(uname)" != "Linux" ]]; then
        echo "Skipping test on non-Linux platform"
        exit 0
      fi

      source process-helpers.sh
      echo "pid != ppid: $(( $(get-pid) != $(get-ppid) ))"
      echo "pid == pgrp: $(( $(get-pid) != $(get-pgrp) ))"