-----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 [EMAIL PROTECTED] -----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----- _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash