public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: felix@crowfix.com
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Bash $VAR expansion escapes the dollar instead of expanding
Date: Tue, 22 Mar 2011 06:51:54 -0700	[thread overview]
Message-ID: <20110322135154.GB4416@crowfix.com> (raw)

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



             reply	other threads:[~2011-03-22 13:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-22 13:51 felix [this message]
2011-03-23 14:55 ` [gentoo-user] Bash $VAR expansion escapes the dollar instead of expanding 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110322135154.GB4416@crowfix.com \
    --to=felix@crowfix.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox