0

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?

Alexander
  • 1,288
  • 5
  • 19
  • 38

0 Answers0