bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash -c 'sleep 5 &' vs. ssh user@host 'sleep 5 &'


From: Clark Wang
Subject: bash -c 'sleep 5 &' vs. ssh user@host 'sleep 5 &'
Date: Tue, 22 Sep 2020 10:02:07 +0800

In an interactive shell (in case this matters), run bash -c 'sleep 5 &' and
it exits immediately without waiting for the sleep to complete. But ssh
user@host 'sleep 5 &' (with bash as the login shell) would wait for sleep
to complete. Why the difference?

Thanks.

-clark


reply via email to

[Prev in Thread] Current Thread [Next in Thread]