什么是-z in if [-z"$ {FILE_LIST}"]

Oh *_*oon 3 shell

遇到这个,-zshell脚本中有if [ -z "${FILE_LIST}" ]什么?

Sté*_*nez 5

[是一样的test.并man test给出:

   -z STRING
          the length of STRING is zero
Run Code Online (Sandbox Code Playgroud)

注意:在某些平台上,[是符号链接或硬链接test