Hi, Here is the patch: -safe_term=${TERM//[^[:alnum:]]*/} # sanitize TERM +safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM Regular terminal: TERM=Eterm screen terminal: TERM=screen.Eterm The sanitize line does this: screen.Eterm -> screen?Eterm after the patch: screen.Eterm -> screen as expected, and now prompt is with colors again. Regards, Kfir Reproducible: Always
Created attachment 279943 [details] /etc/bash/bashrc TERM is now interpretad correctly for color prompt.
Created attachment 279945 [details, diff] Just corrected the order of the files in the patch, so it can be applied
Comment on attachment 279945 [details, diff] Just corrected the order of the files in the patch, so it can be applied sorry, but this patch is wrong. the current code is correct as we do want to use "screen?Eterm" as our match string. the point is to match a "TERM screen?Eterm" line against the dircolor db. if the dircolor db had a "TERM screen.Eterm" line, then you would have gotten colored output. so bash is working as designed. what you actually want is to update the coreutils dircolors db to include a "TERM screen.Eterm" line.
I now understand the problem: The 'TERM screen-Eterm' line is missing in /etc/DIR_COLORS After adding this line, I get back my colorful gentoo prompt. Is this a bug for coreutils? Regards, Kfir
i sent a patch upstream. i dont consider this important enough to warrant a rev bump ... sorry.
No prolem, thanks for your efforts. Regards, Kfir