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.
wait -f $pid
与 default 相比做什么wait $pid
?在什么条件下-f
需要该选项?