how to get bash to stop escaping $ during tab-completion?

Posted by keturn on Ask Ubuntu See other posts from Ask Ubuntu or by keturn
Published on 2011-10-22T18:06:53Z Indexed on 2012/12/01 5:20 UTC
Read the original article Hit count: 124

Filed under:
|
|

I have this on the command line:

 ln -sf $PWD/wine-

and then I hit tab to complete the filename. In earlier versions of Ubuntu, this worked just fine to complete the wine- filename (and as a side-effect $PWD would be expanded at that time). But now it turns it in to

 ln -sf \$PWD/wine-

which isn't what I meant at all and doesn't complete anything as the file does not literally start with $.

How do I get completion back to the less broken behaviour?

set tells me these are my current settings:

BASHOPTS=checkwinsize:cmdhist:expand_aliases:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor

© Ask Ubuntu or respective owner

Related posts about 11.10

Related posts about bash