On 10/15/12 11:26 AM, William F Hammond wrote: >> If you indeed are using bash-4.2.37, you can enable variable expansion >> by running `shopt -s direxpand'. This will produce the behavior you >> want. >> >> I'm wondering if you've got programmable completion enabled, or whether >> you're running a different version of bash than bashbug indicates, because >> stock 4.2.37 doesn't quote the dollar sign. > > Yes 'shopt -s direxpand' works. Thanks. > > I'm working with Ubuntu 12.04(LTS) which was installed by a > difficult upgrade from Ubuntu 10.04(LTS) about six weeks > ago. Ubuntu 12.04 comes with bash version 4.2.24, while > 10.04 came with 4.1.5. So the tab completion issue was new > for me with bash 4.2.24.
Yes, this issue was new with bash-4.2. Patch 29 contains several things: the direxpand option, fixes to the treatment of relative pathnames, and some heuristics that prevent dollar signs from being quoted in expanded words without direxpand enabled. The intent of the direxpand option is to restore the bash-4.1 behavior, with some bug fixes. I'm not sure why Ubuntu is waiting to update bash-4.2 to at least patch 29 other than they just haven't gotten to it yet. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/