alhassani54
Programmer
my script
#!/bin/ksh
#
function f_a
{
flag=1
}
function f_b
{
integer flag=0
f_a
if [[ $flag = 1 ]]; then
echo "flag=1"
fi
}
.
.
.
from function f_a I would like to return the value of flag equal 1 to function f_b.
Any help will be appreciated.
Thanks
Kais
#!/bin/ksh
#
function f_a
{
flag=1
}
function f_b
{
integer flag=0
f_a
if [[ $flag = 1 ]]; then
echo "flag=1"
fi
}
.
.
.
from function f_a I would like to return the value of flag equal 1 to function f_b.
Any help will be appreciated.
Thanks
Kais