aboutsummaryrefslogtreecommitdiff
path: root/tests/tmux-util/fake-kill
blob: a157e32cca94b34155bed05981c489f0f2c99cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Fake kill for testing tmux-util.
#
# Records every invocation to $FAKE_TMUX_DIR/kill.log as one line per call.
# Format: kill <args>
# Exits 0 unconditionally — tests assert on the log, not the actual signaling.

: "${FAKE_TMUX_DIR:?FAKE_TMUX_DIR must be set}"

printf 'kill %s\n' "$*" >> "$FAKE_TMUX_DIR/kill.log"
exit 0