diff --git a/regress/session-ops.sh b/regress/session-ops.sh index 2da14b959..3b4f10073 100644 --- a/regress/session-ops.sh +++ b/regress/session-ops.sh @@ -32,7 +32,7 @@ $TMUX kill-server 2>/dev/null # Run a command and require that it succeeds. check_ok() { - if ! $TMUX "$@"; then + if ! $TMUX "$@" &1) + out=$($TMUX "$@" &1) if [ $? -eq 0 ]; then echo "Command succeeded (expected failure): $*" exit 1