From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wGkJE6Y4AmKWbAEAgWs5BA (envelope-from ) for ; Tue, 08 Feb 2022 10:32:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gNzZD6Y4AmIDvAAAauVa8A (envelope-from ) for ; Tue, 08 Feb 2022 10:32:22 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.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 A2C84448DA for ; Tue, 8 Feb 2022 10:32:21 +0100 (CET) Received: from localhost ([::1]:54388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHMrE-0005HA-QS for larch@yhetil.org; Tue, 08 Feb 2022 04:32:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHMm6-0008PT-LK for bug-guix@gnu.org; Tue, 08 Feb 2022 04:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHMm6-0004A2-9l for bug-guix@gnu.org; Tue, 08 Feb 2022 04:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHMm6-00027G-2R for bug-guix@gnu.org; Tue, 08 Feb 2022 04:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#51466: bug#53355: guix shell --check: confusing error message Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 08 Feb 2022 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51466 X-GNU-PR-Package: guix X-GNU-PR-Keywords: moreinfo To: Chris Marusich Received: via spool by 51466-submit@debbugs.gnu.org id=B51466.16443123988101 (code B ref 51466); Tue, 08 Feb 2022 09:27:02 +0000 Received: (at 51466) by debbugs.gnu.org; 8 Feb 2022 09:26:38 +0000 Received: from localhost ([127.0.0.1]:45299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHMla-00026O-HE for submit@debbugs.gnu.org; Tue, 08 Feb 2022 04:26:38 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:35028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHMlY-00026A-TH for 51466@debbugs.gnu.org; Tue, 08 Feb 2022 04:26:29 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 92AAE361; Tue, 8 Feb 2022 10:26:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id affheNiImK3S; Tue, 8 Feb 2022 10:26:21 +0100 (CET) Received: from ribbon (unknown [193.50.110.192]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 9D029132; Tue, 8 Feb 2022 10:26:21 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87h7a08kub.fsf@gmail.com> <87lez5td4n.fsf@gnu.org> <87sftc4osu.fsf@gmail.com> <87h79slysd.fsf@gnu.org> <87sft13dyv.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 20 =?UTF-8?Q?Pluvi=C3=B4se?= an 230 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 08 Feb 2022 10:26:21 +0100 In-Reply-To: <87sft13dyv.fsf@gmail.com> (Chris Marusich's message of "Tue, 01 Feb 2022 23:49:28 -0800") Message-ID: <874k59d802.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 92AAE361 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 51466@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644312742; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=LC1QuAQge3OUors8sbN2N3BSL46Iv5WoqHwrpTFi6jc=; b=iHxsazauEoQcYAhoou90z0+r6SnBaSDOxI1g3tLh54XH/aGlx1x3p3E9qhzli1LV/+sR7h P8ezk4/u6yBhW96MTxw0ZjBQaI3iYc9roJK6cVi5ua45kCt2739Z3NGtHTwdnuZUvmjfQ8 YtAX4zmUoe3b/nWjOVEwBkvR1REVhWTmlBm/Sju8UrGIhEEUaNJOQRoUkUHeD7IJKFPzrx mG9iP3V8vn26Qrhu/jE9S4NkH+V9nEfdAWhuf0LdF0B4jsX692gXH10NAYeBm/BzZd9rov cVV4Uk1X4ySyPLTnXt3HlUkqXCJ8ArUP3tn14N7y+VR+Y4dp9fFCZi6I3i9Zfw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644312742; a=rsa-sha256; cv=none; b=uTkUhmlN/kANZOZNrFw0yI9Cxn9aUJ6WZxFCYBFnZKN9IcLhvOq6uQHTtUByGLy45rA3vX sIy+gWlFimU3rqes7VQlHsX5DnfdCR5lo2igVGj8iStXdpcdQfb/VfwiVhldZo0QeNddY6 iA6EproTnE+o9BC6MZgycCoHy9PN3exSlddi7UirZCuxcXBBDw/9MmoWza399m/WAcRcNK fSpfTqUZPwYFQdOFvSXBiOYDcz3XDRK4weQpavDWwziEotBcMVSfRwNIk/E03ZNcnohsxA wNgw01FG4zDrcpW/GQw3qtCIfQOBxnJyDGT06Xl45fbtfyFJ0ZZ9CrtNz+8Q7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.23 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A2C84448DA X-Spam-Score: -4.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8ScRt6ZeqXoP --=-=-= Content-Type: text/plain Hi Chris, Thanks for testing! Chris Marusich skribis: > The presence of the "$" in front of LIBRARY_PATH seems suspicious: > > ;;; (variable "$ LIBRARY_PATH=/gnu/store/hvcq6yjfjjc7060pq09zm1rj02mivg4h-profile/lib" "$ LIBRARY_PATH") > > I'm not sure why the "$" is being added. I tried various things to > remove it. I tried explicitly setting PS1 to an empty string in my > ~/.bashrc. I also tried setting it explicitly to an empty string in > /etc/profile. Maybe if we can figure out where that "$ " prefix is > coming from, we can resolve this issue? How about this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index ec071402f4..ac2c79ab65 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -420,7 +420,7 @@ (define script ;; Script to obtain the list of environment variable values. On a POSIX ;; shell we can rely on 'set', but on fish we have to use 'env' (fish's ;; 'set' truncates values and prints them in a different format.) - "env || /usr/bin/env || set; echo GUIX-CHECK-DONE; read x; exit\n") + "PS1=; env || /usr/bin/env || set; echo GUIX-CHECK-DONE; read x; exit\n") (define lines (match (primitive-fork) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ? Thanks, Ludo=E2=80=99. --=-=-=--