From c66744e68ba5c6bc33c342f96343ea99288dc9fe Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 2 Aug 2024 15:42:33 -0700 Subject: sb: better -m --- sh/sb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sh/sb') diff --git a/sh/sb b/sh/sb index 4737971..08eacb4 100755 --- a/sh/sb +++ b/sh/sb @@ -3,7 +3,8 @@ case "$1" in # also run commands in current Master computer - '-m') shift; "$@";; + # I use `eval "$*"` instead of just a "$@" here because passing clis to ssh sometimes requires weird quotes like `sb -m 'echo a; echo b'` and I want examples like this to work + '-m') shift; eval "$*";; esac for branch in $(git -C "$HOME/programs/config_local_arch" branch | awk '!/master/{print ($1=="*")?$2:$1}'); do -- cgit v1.2.3-70-g09d2