bash – expand shell variables ( bash bug resolved )
2015-08-17
68 words
1 min read
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.
Related Articles:
- 2010/04/11 Bash completion error — quote_readline.
- 2015/07/09 evvsubst – substitute variables in text in shell
- 2015/04/13 ionice – renice you IO activity for the process.
- 2011/01/29 bash math
- 2011/01/14 bash 4.0 – new feature mapfile
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.