From b9b8557efdbe21dcfb2ccd5ae16d90bc18830b17 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 19 Apr 2024 20:33:38 -0700 Subject: exec seems no use in `ssh -t studio exec bash -l` My tests shows https://superuser.com/a/306571/1282809 exec no need for `ssh -t studio 'exec bash -l'`, exec does not replace the shell, there's no shell to replace with? --- sh/u | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh/u') diff --git a/sh/u b/sh/u index e169af1..68a8697 100755 --- a/sh/u +++ b/sh/u @@ -12,7 +12,7 @@ for host in ca ka ia studio pp; do # maybe another way: # https://superuser.com/questions/241187/how-do-i-reload-inputrc # because I invoke bash, no need alacritty --hold - o alacritty -T "$host" -e ssh -t "$host" '. "$HOME/.profile" && upd; exec "$SHELL" -l' + o alacritty -T "$host" -e ssh -t "$host" '. "$HOME/.profile" && upd; "$SHELL" -l' done upd -- cgit v1.2.3-70-g09d2