Re: How can I check an environment variable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux