Clark Wang <dearv...@gmail.com> writes:
> Then, how should we explain that
>
>   $ ssh -t 127.0.0.1 'sleep 120 &'
>
> would complete immediately?

One thing to check is whether ssh is giving you a pty in various
circumstances.  Execute the "tty" command, e.g. "ssh 127.0.0.1 tty".
Once you know whether the remote Bash has a pty and that it has been
given a command on the command line, you can start sorting out what mode
Bash is running in and exactly what "&" does.

Dale

Reply via email to