SyntaxFix
Write A Post
Hire A Developer
Questions
Why would you use -z? To test if a string is non-empty, you typically use -n:
if test -n "$errorstatus"; then echo errorstatus is not empty fi