From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AFLMNldyrV6gDgAA0tVLHw (envelope-from ) for ; Sat, 02 May 2020 13:15:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IKsoFmFyrV5FPAAA1q6Kng (envelope-from ) for ; Sat, 02 May 2020 13:15:13 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5036B940043 for ; Sat, 2 May 2020 13:15:12 +0000 (UTC) Received: from localhost ([::1]:46872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUrz6-0003cO-Ft for larch@yhetil.org; Sat, 02 May 2020 09:15:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUryx-0003ap-77 for bug-guix@gnu.org; Sat, 02 May 2020 09:15:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUryw-0003V7-P2 for bug-guix@gnu.org; Sat, 02 May 2020 09:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUryw-0003UD-BB for bug-guix@gnu.org; Sat, 02 May 2020 09:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jUryw-0002FT-58 for bug-guix@gnu.org; Sat, 02 May 2020 09:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#40977: --load-path does not honor ~ Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 02 May 2020 13:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40977 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Danny Milosavljevic Received: via spool by 40977-submit@debbugs.gnu.org id=B40977.15884252548545 (code B ref 40977); Sat, 02 May 2020 13:15:02 +0000 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 40977@debbugs.gnu.org, Hartmut Goebel Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 X-Spam-Score: -0.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Scan-Result: default: False [-0.45 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49494836908518]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.15), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[ludo@gnu.org,bug-guix-bounces@gnu.org]; ARC_NA(0.00)[]; R_MIXED_CHARSET(0.56)[subject]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; URIBL_BLOCKED(0.00)[scratchpost.org:email]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCVD_COUNT_SEVEN(0.00)[10]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: vbMOzdL0XYC9 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.