public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Willie Wong <wwong@math.princeton.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Bash $VAR expansion escapes the dollar instead of expanding
Date: Wed, 23 Mar 2011 10:55:05 -0400	[thread overview]
Message-ID: <20110323145505.GA16288@math.princeton.edu> (raw)
In-Reply-To: <20110322135154.GB4416@crowfix.com>

On Tue, Mar 22, 2011 at 06:51:54AM -0700, felix@crowfix.com wrote:
> 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.

A possible culprit maybe the bash-completion package. Have you updated
that recently?

W
-- 
Willie W. Wong                                     wwong@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
         et vice versa   ~~~  I. Newton



  reply	other threads:[~2011-03-23 14:56 UTC|newest]

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