Hello David,

* Dr. David Kirkby wrote on Wed, Aug 12, 2009 at 11:18:29AM CEST:
> What's the best way to check if an environment variable is set?

if test "${var+set}" = set; then
  echo "variable \$var is set to: $var"
fi

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to