There are threads about this all over the mailing list...
http://git.savannah.gnu.org/cgit/bash.git/log/?h=direxpand is a branch
of 4.2 that already has this patched
http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00079.html
is one thread on the issue, I think it also includes the patch.
On Wed, Apr 4, 2012 at 9:48 AM, Aljoša Mohorović
<address@hidden> wrote:
> i think that before bash 4.2 (although i could be wrong about
> versions) it was possible to just use <tab> in shell to expand
> something like $PWD into actual value.
> now i'm getting \$PWD when i hit <tab>, any way i can get previous behaviour?
>
> Aljosa
>