October 10th, 2003, 02:11 PM
Join Date: Oct 2003
Location: St. Louis, MO
Time spent in forums: < 1 sec
Reputation Power: 0
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` ]
echo Variable FOO exists
echo Variable FOO does not exist.
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.