Bash 5.0 包括一个新-f
选项wait
:[1]
j. The `wait' builtin now has a `-f' option, which signfies to wait until the
specified job or process terminates, instead of waiting until it changes
state.
Run Code Online (Sandbox Code Playgroud)
这是什么wait -f $pid
做的,而不是默认wait $pid
?在什么条件下-f
需要选择?