我--在compgen命令中看到使用过。
例如:
compgen -W "foo bar baz" -- b
Run Code Online (Sandbox Code Playgroud)
里面的意思是什么--?
我最近在 shell 脚本中遇到了这个问题。
if ! kill -0 $(cat /path/to/file.pid); then
... do something ...
fi
Run Code Online (Sandbox Code Playgroud)
有什么作用kill -0 ...?