fork download
  1. echo "Testing non-empty case:"
  2. err="nonempty"
  3. if [ "$err" = "" ]; then echo EMPTY; else echo CONTENT; fi
  4.  
  5. echo "Testing empty case:"
  6. err=""
  7. if [ "$err" = "" ]; then echo EMPTY; else echo CONTENT; fi
  8.  
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
Testing non-empty case:
CONTENT
Testing empty case:
EMPTY