From f45f7e415c32d17104385b87fe82e0bae96b3221 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Mon, 19 Jan 2026 16:27:56 +0800 Subject: [PATCH] fix(riot): tmux error with window number and spaces The fix to spaces is just a workaround. Issue may still exist when command contains spaces. --- scripts/riot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/riot b/scripts/riot index 7f31f73..fd6dcb2 100755 --- a/scripts/riot +++ b/scripts/riot @@ -148,7 +148,7 @@ print_cmd() { eval_or_echo() { local DO="" - local tmux_win=0 + tmux_win=${tmux_win:-0} if [[ "$DFS_DRY_RUN" == "1" ]]; then DO=echo fi @@ -160,7 +160,7 @@ eval_or_echo() { tmux_win=$((tmux_win+1)) $DO tmux new-window -t $TMUX_SESS:$tmux_win -d bash -l fi - $DO tmux send-keys -t $TMUX_SESS:$tmux_win "${CMD[@]}" Enter + $DO tmux send-keys -t $TMUX_SESS:$tmux_win $(printf '%s Space ' "${CMD[@]}") Enter else $DO "${CMD[@]}" fi