Skip to content

BLOG.JUNGWON.KIM

Menu

What’s the best way to check that environment variables are set in Unix shellscript

http://stackoverflow.com/questions/307503/whats-the-best-way-to-check-that-environment-variables-are-set-in-unix-shellscr

[ -z "$STATE" ] && echo "Need to set STATE" && exit 1;
What’s the best way to check that environment variables are set in Unix shellscript
Jungwon September 16, 2015 CS
  • ← Change tab size of “cat” command
  • clang AST Matcher Reference →
Copyright © 2026 BLOG.JUNGWON.KIM. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.