it seems single(i) is trying to match with double digit numeric (10 is one of of the value in array)
STATE 1
abc@xyz $ i=1
abc@xyz $ allStatus=(2 3 4 5 6 7 8 9 10)
abc@xyz $ if [[ ! ${allStatus[@]} =~ $i ]]
> then
> echo OK
> fi
STATE 2
abc@xyz $ i=2
abc@xyz $ allStatus=(1 3 4 5 6 7 8 9 10)
abc@xyz $
abc@xyz $ if [[ ! ${allStatus[@]} =~ $i ]]
> then
> echo OK
> fi
OK
abc@xyz $
all i want is, STATE 1 should echo/print OK