I have a code:
flag=true
if cmp -s item1 item2 ; then
if test flag = true; then
echo 'a'
else
echo 'b'
fi
fi
and for somereason only the else is triggered and I get 'b', why is that?
I have a code:
flag=true
if cmp -s item1 item2 ; then
if test flag = true; then
echo 'a'
else
echo 'b'
fi
fi
and for somereason only the else is triggered and I get 'b', why is that?