Hi, I am using SLES 11 SP3 on an AWS EC2 instance. I have two different bash versions on two different servers.

In shell (GNU bash, version 4.2.47(1)-release (x86_64-suse-linux-gnu)), when I hit tab for autocompletion, the "$" is escaped after the variable name is completed, but if there is no completion then it just bells. E.g.

$ ls $JDK_H<tab>
results in
$ ls \$JDK_HOME (with a trailing space)

On an old GNU bash, version 3.2.51(1)-release (x86_64-suse-linux-gnu), it did not escape the "$" after completion which is what I would like.

How do I get the old behavior in the new bash? Am I missing some setup options. FWIW these are my shell options:

BASHOPTS=checkwinsize:cmdhist:expand_aliases:extgl ob:extquote:force_fignore:histappend:interactive_c omments:login_shell:progcomp:promptvars:sourcepath
SHELLOPTS=braceexpand:emacs:hashall:histexpand:his tory:interactive-comments:monitor