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
name: "Tracing tests"
cases:
  - name: "xtrace-file captures trace output"
    args: ["--xtrace-file", "trace.txt"]
    stdin: |
        echo hello
        true
    expected_exit_code: 0
    snapshot: true
    # std::fs::File::try_clone() returns "operation not supported" on
    # wasm32-wasip2, so brush's OpenFile::clone() falls back to a failing
    # writer and the trace file ends up empty. Affects all output redirection
    # under wasi, not just xtrace.
    incompatible_platforms: ["wasi"]