I am a little confused by this KornShell (ksh) script. I write mainly with boolean and conditional expressions.
So, the first part of my script I have catmeand wcmethat are installed both on trueand on false. This part works fine since I tried them echoand they give the expected results. Later I have this code:
if [[ $catme ]] ; then
some commands
fi
And I repeat this with wcme. Surprisingly, however, no matter what wcme, and catme, the team inside my operator ifperformed.
Is this a syntax error? I tried [[ $catme -eq true ]], but this does not work either. Can someone point me in the right direction?
source
share