20 lines
1.6 KiB
JSON
20 lines
1.6 KiB
JSON
{"id": "st-word-split", "cmd": "x=\"a b\"; printf '[%s]\\n' $x", "expect": "diverge"}
|
|||
|
|
{"id": "st-noglob-nomatch", "cmd": "echo *.doesnotexist", "expect": "diverge"}
|
||
|
|
{"id": "st-echo-escapes", "cmd": "echo 'a\\nb'", "expect": "diverge"}
|
||
|
|
{"id": "pipeline-grep-sort", "cmd": "grep -c ERROR logs/app.log && sort -u b.txt | head -2"}
|
||
|
|
{"id": "redirect-append", "cmd": "wc -l < a.txt > out.txt; echo done >> out.txt; cat out.txt"}
|
||
|
|
{"id": "cmdsub-quoted", "cmd": "n=$(wc -l < a.txt | tr -d ' '); echo \"lines=$n\""}
|
||
|
|
{"id": "find-sed", "cmd": "find src -name '*.py' | sort; sed -n '1p' src/util.py"}
|
||
|
|
{"id": "make-target", "cmd": "make check"}
|
||
|
|
{"id": "quoted-vars-match", "cmd": "x=\"a b\"; printf '[%s]\\n' \"$x\""}
|
||
|
|
{"id": "heredoc-write", "cmd": "cat > note.txt <<'EOF'\nhello host\nEOF\ncat note.txt"}
|
||
|
|
{"id": "exit-code-propagation", "cmd": "false; echo \"code=$?\""}
|
||
|
|
{"id": "cd-and-list", "cmd": "cd src && ls | sort"}
|
||
|
|
{"id": "arithmetic", "cmd": "i=$((2+3)); echo $i"}
|
||
|
|
{"id": "conditional-test", "cmd": "if [ -f data.csv ]; then cut -d, -f1 data.csv | tail -n +2 | sort; fi"}
|
||
|
|
{"id": "git-push", "cmd": "git push origin main", "class": "excluded:network"}
|
||
|
|
{"id": "curl-fetch", "cmd": "curl -fsSL https://example.com/artifact.tgz | tar xz", "class": "excluded:network"}
|
||
|
|
{"id": "brew-install", "cmd": "brew install jq", "class": "excluded:mutates-host"}
|
||
|
|
{"id": "swift-build-test", "cmd": "swift build && swift test", "class": "excluded:toolchain — replay with --worktree against a real package"}
|
||
|
|
{"id": "codesign-app", "cmd": "codesign --force --sign - dist/My.app", "class": "excluded:signing-identity"}
|