bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

possible bugs with colored-stats


From: Arnaud
Subject: possible bugs with colored-stats
Date: Wed, 28 Oct 2020 21:10:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -O2 -flto -ffat-lto-objects -fexceptions -g 
-grecord-gcc-switches -pipe -Wall -Werror=format-security 
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -mtune=generic 
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection 
-Wno-parentheses -Wno-format-security
uname output: Linux localhost.localdomain 5.9.1-300.fc33.x86_64 #1 SMP Fri Oct 
23 11:58:21 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-redhat-linux-gnu

Bash Version: 5.0
Patch Level: 17
Release Status: release

Description:
        I have colored my prompt with colors, using PS1 and PS0.

        PS1 ends with a color definition, so the command entered is colored.
        PS0 resets the color so the output has the standard colors.
        I have actived colored-stats, so when I use tab completion, the colors 
I use in the command doesn't show in the tab completion.

        Problem 1
        If the list starts with a file, only the 1st file is colored with the 
PS1 color.
        If the list starts with a folder, the colors are ok.

        Problem 2
        when I list the content of a folder with ls, the color is ok (white in 
my case, until I reach a folder,
        it then switches the color of the following files to grey.

        I tried looking in the bash code to try to find the problem, but I 
cannot locate the part of the code for that (not experienced in C)
        Normally, readline should be the part I am looking for, but I also have 
readline installed in my system, so it should be in it?
        (tried to remove the readline package in my system to be sure, but it 
wants to remove systemd, so I didn't)

        it seems to also do this with 5.1-rc1

Repeat-By:
        add "set colored-stats on" in ~/.inputrc (may need to restart the shell)
        add at the end of PS1: "(\[\€[38;5;220m\]" , for example
        add for PS0: "\[\e[38;5;15m\]"

(I tried to send it with bashbug on my system, but I didn't see it coming in 
the list, so sending it again)

Attachment: OpenPGP_0xEA0DA251B671CC2A.asc
Description: application/pgp-keys

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]