From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OJAoKNkBq147TQAA0tVLHw (envelope-from ) for ; Thu, 30 Apr 2020 16:50:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QBqYDeMBq15QFgAAbx9fmQ (envelope-from ) for ; Thu, 30 Apr 2020 16:50:43 +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 AC9C9941EDD for ; Thu, 30 Apr 2020 16:50:39 +0000 (UTC) Received: from localhost ([::1]:42312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUCOV-0006AE-Jp for larch@yhetil.org; Thu, 30 Apr 2020 12:50:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51764) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUCLR-0001ke-SJ for bug-guix@gnu.org; Thu, 30 Apr 2020 12:48:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUCH8-0001lC-Pi for bug-guix@gnu.org; Thu, 30 Apr 2020 12:47:29 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUCH8-0001l5-CG for bug-guix@gnu.org; Thu, 30 Apr 2020 12:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jUCH8-0004hF-Al for bug-guix@gnu.org; Thu, 30 Apr 2020 12:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#40977: --load-path does not honor ~ Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 30 Apr 2020 16:43: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: zimoun Received: via spool by 40977-submit@debbugs.gnu.org id=B40977.158826497718041 (code B ref 40977); Thu, 30 Apr 2020 16:43:02 +0000 Received: (at 40977) by debbugs.gnu.org; 30 Apr 2020 16:42:57 +0000 Received: from localhost ([127.0.0.1]:47555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUCH2-0004gv-No for submit@debbugs.gnu.org; Thu, 30 Apr 2020 12:42:56 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:55472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUCH0-0004gi-H0 for 40977@debbugs.gnu.org; Thu, 30 Apr 2020 12:42:55 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 49Ch591SSWz1rv0N; Thu, 30 Apr 2020 18:42:52 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 49Ch585V8cz1qspb; Thu, 30 Apr 2020 18:42:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id RqoKJ8UnAcYj; Thu, 30 Apr 2020 18:42:51 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-59-14.dynamic.mnet-online.de [188.174.59.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Thu, 30 Apr 2020 18:42:51 +0200 (CEST) Received: from lenashee.goebel-consult.de (lenashee.fritz.box [192.168.110.28]) by hermia.goebel-consult.de (Postfix) with ESMTP id E9B6460138; Thu, 30 Apr 2020 18:43:32 +0200 (CEST) References: <9fc5fc35-10c6-dda3-1e11-36740e4510c4@crazy-compilers.com> From: Hartmut Goebel Organization: crazy-compilers.com Message-ID: <52117c4b-3090-1ccf-5669-ff4c47935e19@crazy-compilers.com> Date: Thu, 30 Apr 2020 18:42:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US 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 Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 X-Spam-Score: -1.01 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 [-1.01 / 13.00]; GENERIC_REPUTATION(0.00)[-0.49409335872724]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.17), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; DWL_DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; RCVD_COUNT_TWELVE(0.00)[13]; HAS_ORG_HEADER(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[188.174.59.14:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[h.goebel@crazy-compilers.com,bug-guix-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[crazy-compilers.com:email]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[crazy-compilers.com]; HAS_LIST_UNSUB(-0.01)[]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; MIME_TRACE(0.00)[0:+]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: PwAFl5TtWqyy Hi, This is not related to #40549. The short option "-L ~/…" works, since thin this case the shell resolves the tilde. Whereas for the long-option the shell does not revolve the tilde, since the tilde is in the middle of the argument. Yu can verify this yourself easily: $ python -c 'import sys; print(sys.argv)' ~ ['-c', '/home/hartmut'] $ python -c 'import sys; print(sys.argv)' -L ~ ['-c', '-L', '/home/hartmut'] $ python -c 'import sys; print(sys.argv)' ---long=~ ['-c', '---long=~'] Proposed solution: After processing options, guix need to "expanduser()" (as it is called in Python) on all arguments which are paths. -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |