I am a little confused with this KornShell (ksh) script I am writing, mostly with booleans and conditionals.
So the first part of my script I have catme and wcme both set to either true or false. This part is working fine, as I have tried echoing them and they produce the expected results. Later on, I have this code:
if [[ $catme ]] ; then some commands fi And I repeat this with wcme. However, unexpectedly, no matter what wcme and catme are, the commands inside my if statement are executed.
Is this a syntax error? I have tried [[ $catme -eq true ]] but that does not seem to work either. Could someone point me in the right direction?