From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WPf4Fu+KkWElcQEAgWs5BA (envelope-from ) for ; Sun, 14 Nov 2021 23:17:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GPWjEu+KkWG+HgAAB5/wlQ (envelope-from ) for ; Sun, 14 Nov 2021 22:17:19 +0000 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 E42785520 for ; Sun, 14 Nov 2021 23:17:18 +0100 (CET) Received: from localhost ([::1]:49798 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmNoM-0003Tp-3j for larch@yhetil.org; Sun, 14 Nov 2021 17:17:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmNo7-0003TU-Ji for guix-patches@gnu.org; Sun, 14 Nov 2021 17:17:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmNo6-0003xl-HF for guix-patches@gnu.org; Sun, 14 Nov 2021 17:17:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmNo6-0003GK-D0 for guix-patches@gnu.org; Sun, 14 Nov 2021 17:17:02 -0500 Subject: bug#51780: [PATCH] environment: Fix =?UTF-8?Q?=E2=80=98--check=E2=80=99?= with exported PS1 variable. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sun, 14 Nov 2021 22:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 51780 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Thiago Jung Bauermann Cc: 51780-done@debbugs.gnu.org Mail-Followup-To: 51780@debbugs.gnu.org, ludo@gnu.org, bauermann@kolabnow.com Received: via spool by 51780-done@debbugs.gnu.org id=D51780.163692822012444 (code D ref 51780); Sun, 14 Nov 2021 22:17:02 +0000 Received: (at 51780-done) by debbugs.gnu.org; 14 Nov 2021 22:17:00 +0000 Received: from localhost ([127.0.0.1]:51931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmNo4-0003EL-7o for submit@debbugs.gnu.org; Sun, 14 Nov 2021 17:17:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmNo2-00039F-Pq for 51780-done@debbugs.gnu.org; Sun, 14 Nov 2021 17:16:59 -0500 Received: from [2001:470:142:3::e] (port=39182 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmNnx-0003xB-JY; Sun, 14 Nov 2021 17:16:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=oLmmRUk6TiulLMVSm/a48n+0D0vguCeoNBWZKuDCTOA=; b=XdUkxm032JQL8ZUjqwab JoKikgaUV6Wc0X/znn/1j78sAZvW+KfBPyigdR74/wyHxRIE8xlaf6sbDpKrYu9EFlx6bXIgkNk3H er40h/stdLk2QrV5PyI57mNtwvHHDQ8tkLWSMTg0darQ/GPzHXGvbxagOGs4d+kHt6bO8uTcHYvo5 7K7gKkUopOpG1JJyP66HFIbhzn03Pk2KRuvo8Hzm+hBYbScfb+qBIYg0k1lh6+1JLKADojotxW1o8 4s4B1/aDI8iXiSi61LgUlEzpxwiAR2jghN8HwSR71xlCWAzQ/QLQjclbw8WJA2wFQVXapJhuvHsOE jsKVBUyCRpjNaQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:56989 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmNnx-0008Hk-B5; Sun, 14 Nov 2021 17:16:53 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20211111234648.672963-1-bauermann@kolabnow.com> Date: Sun, 14 Nov 2021 23:16:51 +0100 In-Reply-To: <20211111234648.672963-1-bauermann@kolabnow.com> (Thiago Jung Bauermann's message of "Thu, 11 Nov 2021 20:46:48 -0300") Message-ID: <87ilwu8jsc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (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-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1636928238; 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: content-transfer-encoding:content-transfer-encoding:resent-to: 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:dkim-signature; bh=oLmmRUk6TiulLMVSm/a48n+0D0vguCeoNBWZKuDCTOA=; b=hU8AVn0cNLQWkSuW5Vx2zBAp4oYxPw78B/8HQ1sxKEf16XrJgE+sAcTgIX2LzyumjZZQzP UdaxKd3MsSX/1jYwgKQcokYcJtUznpryHUou0JqAueB+glug/0n3BX14Jl8RBfDQq1hvDC 5vJ8JUtlRe3+bN8IgWp1skkBlLnL4pGLjS8xs+aqiqIVgc1Q4q54IeQNs/q8S2XNSZ2UWG 99dtpcwsCI9NoJ3KQr4J9ThM8HKf1G8KVz1cGfTR8Wky7SSO8DS0Hu6bUIoaDVYrWzV4mH WR22tThzEJbrqFw5Z+NsTOEAeitqvmZVe4L0EYGSP9QIUxJ8g7haQQGy8moikw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636928238; a=rsa-sha256; cv=none; b=Ofy/xh+WZkvrx+ZRcUAkAZRZfkP8kuN/LQEDIvmmVw9GctlX4VE7l2IQHlhDrhp55cJTVE HP313jSvw7Ww0348PAdhHfhPMPPkdZVggbTlqY0N5omr3MabaNAttjUXaymEDWmEWax1HD j6CbXT6fWklQimIZj8VK2bc1RQF+f8lqv2inBKWCuw8c3y74D06cQoJ40jIEiGtxG1pxSZ 9C8r+TaD23n/mqmuYZCZBf+DDYSbqcafAK8Tbrr/PJi8PBATKEQ/UXSScZp1Z9WiBZ+v2i TTaVDCU3g6dPbpyX2wr6ngeaf8ENFgEZ4gINzAp8NgL2bA0vUSPm0iwRwm4rkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=XdUkxm03; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.04 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=XdUkxm03; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E42785520 X-Spam-Score: -2.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: Zqwv79uQln+1 Hi, Thiago Jung Bauermann skribis: > If your .bashrc (unnecessarily) exports PS1 and you=E2=80=99re in a non-l= ogin > shell, Guix crashes: > > user@popigai:~$ guix shell --check coreutils > guix shell: checking the environment variables visible from shell '/bin/b= ash'... > Backtrace: > 14 (primitive-load "/home/user/.config/guix/current/bin/g=E2=80= =A6") > In guix/ui.scm: > 2206:7 13 (run-guix . _) > 2169:10 12 (run-guix-command _ . _) > In ice-9/boot-9.scm: > 1752:10 11 (with-exception-handler _ _ #:unwind? _ # _) > 1752:10 10 (with-exception-handler _ _ #:unwind? _ # _) > In guix/store.scm: > 658:37 9 (thunk) > 1320:8 8 (call-with-build-handler _ _) > 1320:8 7 (call-with-build-handler # =E2=80=A6) > In guix/status.scm: > 800:4 6 (call-with-status-report _ _) > In guix/scripts/environment.scm: > 951:12 5 (_) > In guix/store.scm: > 2119:24 4 (run-with-store # =E2= =80=A6) > In guix/scripts/environment.scm: > 521:35 3 (_ _) > In unknown file: > 2 (string=3D? ("PS1" . "${debian_chroot:+($debian_chroot)=E2= =80=A6") =E2=80=A6) > In ice-9/boot-9.scm: > 1685:16 1 (raise-exception _ #:continuable? _) > 1685:16 0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > In procedure string=3D: Wrong type argument in position 1 (expecting stri= ng): ("PS1" . "${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\= \[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]${EXTRA}\\$ ") > user@popigai:~$ > > This is because the match pattern doesn=E2=80=99t expect `(vhash-assoc "P= S1" actual)` > to return a pair. > > * guix/scripts/environment.scm (validate-child-shell-environment): Change > match pattern to expect a pair. Oops, good catch! Applied, thanks. Ludo=E2=80=99.