bug-bash
[Top][All Lists]
Advanced

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

No Color for Bash Completion Results


From: Roger
Subject: No Color for Bash Completion Results
Date: Sat, 5 Feb 2011 10:35:04 -0900
User-agent: Mutt/1.5.21 (2010-09-15)

When using bash completion on files within local folder, ie. "$ ls f<tab>"
showing results for files starting with char "f" -- or any char(s) you may
specify, results are not provided in color when bash, terminal and ls are
configured for using color.

I do believe, results for bash completion on files were at one time in color.

To further troubleshoot, I removed /etc/bash/bashrc and $HOME/.bashrc and only
enabling related color commands.



I have tracked this down to the call:

compgen -d -- "$quoted"

(Give or take some commands as I found this by using strace/ltrace or grepping
the files belonging to bash/bash-completion packages.)

Doing something like "compgen -d |ls --color" does provide color, but is likely
not proper.  I believe compgen is provided by bash and not bash-completion.


Using the following packages:
=app-shells/bash-4.1_p9
=app-shells/bash-completion-1.2
=app-shells/gentoo-bashcomp-20101217

Using both rxvt-unicode and framebuffer console.

Grepping around, I can see no references to anything color related when dealing
with compgen or $COMPREPLY.  I did trace the "ls" (core-utils) to
"/usr/share/bash-completion/base" of bash-completion.

Any ideas?


-- 
Roger
http://rogerx.freeshell.org/



reply via email to

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