On 9/7/26 6:00 AM, Andreas Hartmann wrote:

Bash Version: 5.3
Patch Level: 9
Release Status: release

Description:

When the 'completion-prefix-display-length' readline setting is
configured to a nonzero value, the effect of the 'colored-completion-
prefix' and 'colored-stats' readline variables is ignored.

From https://lists.gnu.org/archive/html/bug-readline/2024-12/msg00001.html


"This is interesting. These two options are mutually exclusive, and
completion-prefix-display-length takes precedence (because they have to
calculate where to start printing the filename differently). The function
that prints the filename has to enforce this, since the function that
calls it does."

Mutually exclusive means that only one is active, and they can't both be
active simultaneously. In this case, colored-stats isn't consulted if
completion-prefix-display-length is set to a value > 0.


Iiuc this is in contrast to what's "documented" in the following
locations (on git commit b460816602167718f78a6233164e8875f49b75b2):

- ./CHANGES, line 227

This says they are mutually exclusive.
- ./CHANGES, line 1338
- ./ChangeLog, line 2267
These are old messages, from changes back before bash-5.3 was released.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to