Work -z on unix

if [ -z "${ABC}" ] then LOGDIR=`${JAVA_HOME}/bin/java -cp ${a}/aim.jar my.app.util.GetLogDir "${rsp}"` 

Can someone help me. What is it, if that's for sure. Checks if abc and the calling GetLogDir main exist with some arguments?

+7
source share
2 answers
  -z string True if the length of string is zero. 

Check if ABC empty. If so, the command will be executed and the result will be in LOGDIR .

+11
source

From a human test:

  -z string True if the length of string string is zero. 
+3
source

All Articles