bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tab expansion of $HOME/ to \$HOME/


From: Chet Ramey
Subject: Re: tab expansion of $HOME/ to \$HOME/
Date: Wed, 15 Jan 2014 07:50:09 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/15/14 5:07 AM, Diggory Hardy wrote:
> Thanks Chris.
> 
> So the way I read it is that many people didn't like bash 4.1 behaviour 
> (expansion), but the fact that a $ is replaced with \$ in 4.2 is a bug no one 
> knows how to fix.
> 
> Is this correct?

No.  There was a bug with the default (no programmable completion) bash
completion that resulted in \$. This was fixed in bash-4.2 patch 29, and
you're running bash-4.2.45, so this is not the problem.  You can verify
that it's not the problem by running `complete -r' and removing all of
the programmable completions.

The problem you're having is caused by Fedora's bash-completion package,
which uses some variant of `printf %q' to quote completions.  This is why
I recommended that you open a Fedora bug report against bash-completion.

> (I don't want expansion either.)

You probably won't like the direxpand option, then, but at least you won't
have to go back and remove the quotes.

Chet

- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlLWhAAACgkQu1hp8GTqdKtlvQCcCuEOMb+FY5L9/Qlmn9RzAPRv
wKgAnR3h/Prno0D3Ixoomk/BV9eSIwa4
=L1vP
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]