why the last test doesn't work? expected is true because B=b
Code:
$ A=a
$ B=b
$ C=c
$ [ $A = "a" -a $B = "b" -a $C = "c" ] && echo true || echo false
true
$ [ $A = "a" -a $B = "b" -a $C = "b" ] && echo true || echo false
false
$ [ $A = "a" -a [red][[/red] $B = "b" [red]-o[/red] $C = "b" [red]][/red] ] && echo true || echo false
ksh: b: 0403-012 A test command parameter is not valid.
false
$