[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] colored-stats shows builtins/functions using the "mis
From: |
Chet Ramey |
Subject: |
Re: [Bug-readline] colored-stats shows builtins/functions using the "missing" code |
Date: |
Mon, 23 Mar 2015 15:15:09 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 3/22/15 1:59 AM, Mike Frysinger wrote:
> simple test:
> $ LS_COLORS='mi=01;05;37;41' bash --norc
> $ do<tab>
> it'll show "do" and "done" using the "missing" colorization which is red here.
>
> i don't think it makes sense to use the missing category when doing command
> completion on builtins. maybe use NORMAL (no) ? or don't use any category
> at all ? using EXEC or SYMLINK seems like it could be just as confusing.
This is a tough one. `colored-stats' is a general readline feature, not a
bash-specific one. Readline only knows about filename completion, and
something is either a filename or not. It doesn't know about bash reserved
words, so there's no reason for it to color them differently than any other
missing file.
- --
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
iEYEARECAAYFAlUQZj0ACgkQu1hp8GTqdKsXxACfQtmffF37Kk6xNCw85ZbHpPWf
1tcAn3FOtcrziJ2/qAwI8/1k8qqgD5kX
=ZWx9
-----END PGP SIGNATURE-----