From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: Adding to the end of the load path Date: Thu, 15 Nov 2012 23:37:44 +0100 Message-ID: <87zk2ixzk7.fsf@gnu.org> References: <87sj8o20v0.fsf@googlemail.com> <87liecucrz.fsf@delenn.home.rotty.xx.vu> <87k3tpkyeg.fsf@gnu.org> <87a9uied25.fsf@delenn.home.rotty.xx.vu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1353019085 17289 80.91.229.3 (15 Nov 2012 22:38:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2012 22:38:05 +0000 (UTC) Cc: guile-devel@gnu.org To: Andreas Rottmann Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Nov 15 23:38:16 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TZ84b-00071i-Rk for guile-devel@m.gmane.org; Thu, 15 Nov 2012 23:38:13 +0100 Original-Received: from localhost ([::1]:33355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZ84R-0002ml-N4 for guile-devel@m.gmane.org; Thu, 15 Nov 2012 17:38:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZ84M-0002ld-N1 for guile-devel@gnu.org; Thu, 15 Nov 2012 17:38:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZ84J-0001Cr-Kg for guile-devel@gnu.org; Thu, 15 Nov 2012 17:37:58 -0500 Original-Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=39986 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZ84J-0001Bz-Ee for guile-devel@gnu.org; Thu, 15 Nov 2012 17:37:55 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 0C8ADAA25; Thu, 15 Nov 2012 23:37:45 +0100 (CET) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VnhmhDP5l1+8; Thu, 15 Nov 2012 23:37:44 +0100 (CET) Original-Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 4FE19A997; Thu, 15 Nov 2012 23:37:44 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 25 Brumaire an 221 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87a9uied25.fsf@delenn.home.rotty.xx.vu> (Andreas Rottmann's message of "Thu, 15 Nov 2012 23:06:26 +0100") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:e0b:1:123:ca0a:a9ff:fe03:271e X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15174 Archived-At: Hi Andreas, Andreas Rottmann skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] >> I pretty much like Mark=E2=80=99s suggestion of using =E2=80=98...=E2=80= =99 as a special marker, >> even though that=E2=80=99s a valid file name. >> > Well, there's a workaround -- specifying "./..." as an "escape sequence" > for "..." if you really need to have a three-dot relative directory in > the path. Right. In general, it=E2=80=99s a bad idea to use relative file names in s= uch variables anyway. >> How would that work for you? >> > I would like the approach using separate _SUFFIX variables better, as it > doesn't have this special case. OK. I dislike the proliferation of environment variables, but yeah, it might somewhat less ugly than =E2=80=98...=E2=80=99. > - Add the _SUFFIX environment variables, making it clear in the docs > that they are supported only from Guile 2.0.7 onward. > > - Additonally, add "..." as a special marker, but mention it is just > provided to support Guile < 2.0.7, and should not be used in code that > needs to depend on Guile 2.0.7 or newer for other reasons > (e.g. reliance on another added feature or significant bugfix). Blech, that second part is terrrible. Mark is right that =E2=80=98...=E2=80=99 is the only workable solution, in = terms of compatibility. So we need that one. A potential problem is that in .bashrc, shell scripts, etc., it=E2=80=99s g= oing to be hard to make sure that =E2=80=98...=E2=80=99 remains first, when that= =E2=80=99s what you want, because you=E2=80=99ll inevitable find legacy code that does things l= ike: export GUILE_LOAD_PATH=3D"$HOME/soft/share/guile/site/2.0${GUILE_LOAD_PAT= H:+:}$GUILE_LOAD_PATH" thereby moving =E2=80=98...=E2=80=99 further away. Pfff, this is really terrible. Mark: WDYT? Ludo=E2=80=99.