bug-bash
[Top][All Lists]
Advanced

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

Re: --with-installed-readline breaks tilde-expansion


From: Eric Blake
Subject: Re: --with-installed-readline breaks tilde-expansion
Date: Fri, 12 Aug 2005 07:20:22 -0600
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

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

According to Eric Blake on 7/23/2005 7:14 AM:
> 
> The following patch, to both readline and bash, allows readline to export
> a hook (rather than trying to import a function, which doesn't work in
> dynamic libraries for at least cygwin), so that bash can then override
> getenv() even within the context of a dynamic readline library.  It fixes
> not only tilde expansion (HOME), but also other uses of sh_get_env_value,
> where readline needs to read environment variables from bash, rather than
> the original program environ: INPUTRC, LC_ALL, LANG, EMACS, TERM, COLUMNS,
> and LINES.

[Patch is available at
http://lists.gnu.org/archive/html/bug-bash/2005-07/msg00135.html]

This patch is still needed with bash-3.1-alpha, when dynamically linked
against readline-5.1-alpha.  Even with the bash-3.1 trick of setting
environ, cygwin's getenv() does not track the new environ from within the
shared library.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC/KIV84KuGfSFAYARAgYYAKDXZu+d85hIL/Q/Ii6kyQesvufepQCfXfM1
GQ1Wxosp9xylAdxua0u2d9E=
=SQuQ
-----END PGP SIGNATURE-----




reply via email to

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