From debbugs-submit-bounces@debbugs.gnu.org Sat May 02 09:14:14 2020 Received: (at 40977) by debbugs.gnu.org; 2 May 2020 13:14:14 +0000 Received: from localhost ([127.0.0.1]:51521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUryA-0002Dl-2f for submit@debbugs.gnu.org; Sat, 02 May 2020 09:14:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUry7-0002DY-4g for 40977@debbugs.gnu.org; Sat, 02 May 2020 09:14:13 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56873) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUry1-0002Xg-Gr; Sat, 02 May 2020 09:14:05 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45114 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jUrxz-0003gU-Up; Sat, 02 May 2020 09:14:04 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Danny Milosavljevic Subject: Re: bug#40977: --load-path does not honor ~ References: <9fc5fc35-10c6-dda3-1e11-36740e4510c4@crazy-compilers.com> <52117c4b-3090-1ccf-5669-ff4c47935e19@crazy-compilers.com> <20200430193439.0db54d2f@scratchpost.org> Date: Sat, 02 May 2020 15:14:01 +0200 In-Reply-To: <20200430193439.0db54d2f@scratchpost.org> (Danny Milosavljevic's message of "Thu, 30 Apr 2020 19:34:39 +0200") Message-ID: <87k11u8oo6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40977 Cc: 40977@debbugs.gnu.org, Hartmut Goebel , zimoun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Danny Milosavljevic skribis: >> After processing options, guix need to "expanduser()" (as it is called >> in Python) on all arguments which are paths.=20=20 > > Please don't do it. > > UNIX has its warts, and this is a well-known one (use ${HOME} instead). Seconded. Tilde expansion is performed by the shell. In the case of =E2=80=98--foo=3D~/bar=E2=80=99, tilde expansion does not happen because ~ = is right in the middle of a string. It=E2=80=99s admittedly annoying, but it=E2=80=99s not something Guix itsel= f should paper over. Doing that would open a can of worms, as illustrated by the example Tobias gave. Ludo=E2=80=99.