What does sleep 0 do in a shell script and what does it do if it used in the ansible SSH config to append after each command?
问题 What does sleep 0 do in a shell script? I read the man page for sleep and it says "delay for a specified amount of time" And the argument NUMBER specifies this time in SECONDS (by default). But I see ansible using sh -c 'echo ~ec2-user && sleep 0' to start with each task. Also, it uses this at the end of each remote command it is firing. I didn't find any special case mention of sleep 0 on the man page and based on the functionality of the sleep command it doesn't make any sense to have sleep