DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Anonymous's picture

Unregistered

Feeds

aliases

  • Anonymous

Anonymous

8 months ago

in Bourne/bash shell scripts: string comparison | Bourne shell scripting | Tech-Recipes on Tech-Recipes
i believe the $var needs to be in quotes, like so:

if [ -z "$var" ];then
echo null
fi

Best Regards,
Kibokina
Returning? Login