October 10th, 2003, 03:11 PM
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.
October 10th, 2003, 03:14 PM
ksh -u was on =)
Nevermind (unless anyone else has other ideas)