
October 10th, 2003, 02:11 PM
|
|
Junior Member
|
|
Join Date: Oct 2003
Location: St. Louis, MO
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
KSH Script
Hello,
I have an issue with the error returned on a simple ksh script.
What I am doing is the following from a command line:
if [ `echo $foo` ]
then
echo Variable FOO exists
else
echo Variable FOO does not exist.
fi
This works for the most part other then when foo does not
exist. If I have unset foo then I get this message when typing
in the above lines:
ksh: foo: 0403-041 Parameter not set.
ksh: foo:: 0403-012 A test command parameter is not valid.
Variable FOO does not exist.
Is there a way to NOT receive that message?
Thanks for any assistance in advance.
-Burgel
|