geirha 1321465972 learn [[ $var != a || $var != b ]] is always true. Did you forget De Morgan's Laws? http://en.wikipedia.org/wiki/De_Morgan's_laws geirha 1324559511 forget geirha 1324559527 learn [[ $var != a || $var != b ]] is always true. Did you forget De Morgan's Laws? geirha 1428507088 forget geirha 1428507103 learn [[ $var != a || $var != b ]] is always true. Did you forget De Morgan's Laws? [[ ! ($var = a || $var = b) ]] <=> [[ $var != a && $var != b ]]