public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Bash $VAR expansion escapes the dollar instead of expanding
@ 2011-03-22 13:51 felix
  2011-03-23 14:55 ` Willie Wong
  0 siblings, 1 reply; 6+ messages in thread
From: felix @ 2011-03-22 13:51 UTC (permalink / raw
  To: gentoo-user

I have an env var, WWW=/home/www/felix, which I have always used with
tab completion without problems.

    cd $WWW/ht<tab>ph<tab>20110318

would expand in steps

    cd /home/www/felix/htdocs/
    cd /home/www/felix/htdocs/photos/
    cd /home/www/felix/htdocs/photos/20110318

But some recent bash upgrade has scuppered this.  <tab> no longer
expands the $WWW; instead, it escapes the $, adds a space at the end,
and thinks itself clever.

    cd \$WWW/ht ph

which does me no good.

I'll be danged if I can figure out any google-fu to search for this,
and 'bash help'  and 'info bash' have done me no good either.

I do not know which specific bash upgrade changed this, since I don't
have very many of these env vars I used similarly.  The current "bash
--version" is 4.2.8(2)-release, gentoo version is app-shells/bash-4.2_p8.

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-23 21:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-22 13:51 [gentoo-user] Bash $VAR expansion escapes the dollar instead of expanding felix
2011-03-23 14:55 ` Willie Wong
2011-03-23 16:01   ` felix
2011-03-23 19:33     ` Etaoin Shrdlu
2011-03-23 20:57       ` felix
2011-03-23 21:07       ` felix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox