All:
I have a script like the following:
ABCfunction()
{
if [ SomeConditionIsTrue ]
then
echo "1"
else
echo "0"
fi
}
parameter="Cool"
flag=`ABCfunction $parameter`
I don't know why but the function call doesn't work.
I hence wanted to verify with you guys whether I am on the right track (also, a basic question: in linux scripting we return values using echo command right? )
Looking forward for some help!
Thanks in advance!