Re: Colons not escaped for setting LD_LIBRARY_PATH.

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <20180205214900.GG27582@vapier>
On 05 Feb 2018 11:10, Mike Frysinger wrote:
> On 05 Feb 2018 10:30, Philipp Thomas wrote:
> > * Russ Allbery ([email protected]) [20180203 02:57]:
> > 
> > > I believe directory names including colons are simply not supported for
> > > LD_LIBRARY_PATH (and various other things, such as PATH).
> > 
> > No no no, you get me wrong! What I meant is that colons *are* separators for
> > entries in LD_LIBRARY_PATH and PATH. But now I guess it's more an issue with
> > bash then with libtool as libtool hasn't changed in quite a few years but
> > bash has. So at least for now it seems like a false alarm.
> 
> bash doesn't parse LD_LIBRARY_PATH, and way more than bash parses PATH
> 
> but Russ is correct: at least glibc does not have any mechanism for escaping
> colons in LD_LIBRARY_PATH.  it is simply not supported.
> https://sourceware.org/git/?p=glibc.git;a=blob;f=elf/dl-load.c;hb=glibc-2.27#l738

fwiw, i've sent patches to the man-pages project to make it clear that
escaping the colons will not work.
https://www.spinics.net/lists/linux-man/msg12576.html
-mike

_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAlp40UwACgkQQWM7n+g3
9YHH2g/+JD16mPYS4o7pw8P2hfSCPpOAjVI2/0O/r34FPJrDF+D8t20yaEYFxJ+p
Zp6OfzVvHlJMYRLG0MN+cSVAz4+h6BkJYmrTVHt9iNKCYES3f04Qb2bemQA0UqJt
Lj8yoJ4z2D+80SGhVafivF1O11NGA95Sd5emDiAOWhDvHNNvAKiYjGoLZ9sA0/M1
lNwDj3KljXq1B9aq5NaOB6SYbtfX10//j+MN2BnQqwjWPvnsjXn1aQ7gEoNA578j
IywsInBYLLUXhSjWjniJYgdFOIYWn2POBLvEfmlkytAZlEDCI/WnNMTEATxS0lLz
8WFi/fT2Rw/XCblHkBSdFSGB1L+qUytcx3ek7zUNWvNXZVpkQbCuJMkMsgl3DqYH
G/OTyt6KtQCqKniVi9Gw/ZUphAIfAAxbboUAsrCv4QIWB3MKjApo7LWNskA1SHx3
pDeE0deYv0zh26NmkCZx8i6NgjN52J/pIn7XSOQ04VApOcDhZJo9JvovXIK4mcIW
KLptwgoPX4E6ONlZeYhH2LergPIee69JfD9ng9xaE8CJCQzWucZgyETIcXCjiRzR
B7XSXlYhPhQBm0kyB/UKdcxLkZ3mZwx0h0beEo9nkqyr30e71iBlJYC1dnIPoV2L
7Pg+Yg++O1JHe6ndgFOVt3jAOdwFvvpn21VVrOxx9vRjJ+jl0/g=
=l+KL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.