bash – expand shell variables ( bash bug resolved )

2015-08-17 1 min read bash
As you would have noticed in the recent versions of bash, expansion does not work properly when expanding directory names. So, for something like this cd $varname if you press tab, then variable name does not expand properly. If this is something that is bothering you then you can now add the following in your bashrc and revert to older behaviour: shopt -s direxpand Hope this helps you.

Bash completion error — quote_readline.

2010-04-11 1 min read bash
There is a problem with bash completion with quote_readline that causes the completion to fail. The problem is fixed in the bash completion package but there are still some other programs which are using the problematic code. Here is a way to find and resolve it. First find the problematic program, most likely the recent one after which you started having the problems. Once that is found, find the file containing the definition of the function ”_filedirs()”. Continue reading