https://bugzilla.mindrot.org/show_bug.cgi?id=3550

--- Comment #7 from Darren Tucker <dtuc...@dtucker.net> ---
(In reply to Darren Tucker from comment #6)
[...]
> $ ssh -v -t localhost "trap 'kill -INT -$$' INT; sleep 60;
> PS1='remoteshell$ ' sh -i"

BTW I got the quoting on that wrong, but it happened to work because I
used localhost so the pid from the expanded $$ matched.  For a remote
host, you would need to single-quote or escape the $$:

$ ssh -v -t somehost 'trap "kill -INT -$$; echo sig" INT; sleep 60;
PS1="remoteshell$ " sh -i'

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to