Because of $TERM sanitization: safe_term=${TERM//[^[:alnum:]]/.} # sanitize TERM all terms with a dash in their name (rxvt-unicode, xterm-color, etc.) are not matched: [[ $'\n'${match_lhs} == *$'\n'"TERM ${safe_term}"* ]] && use_color=true I propose the following match to be used: [[ $'\n'${match_lhs} =~ $'\n'"TERM ${safe_term}" ]] && use_color=true Another (probably better) way to fix the bug is to use less aggressive sanitization: safe_term=${TERM//[^[:alnum:]_-]/.}
*** Bug 141820 has been marked as a duplicate of this bug. ***
*** Bug 141821 has been marked as a duplicate of this bug. ***
fixed in cvs
*** Bug 166733 has been marked as a duplicate of this bug. ***