in reply to Logic expression evaluation not working. What am I doing wrong?

Add an eval to that printf, printf "%b\n", eval $newExpr;.

As AnonymousMonk says, care should be taken when using 'eval'. You should check as he does that only valid characters are allowed, especially if eval'ing a string from an unknown source. The unknown string could have malicious system commands, for example, to wipe out your hard drive.

  • Comment on Re: Logic expression evaluation not working. What am I doing wrong?
  • Download Code