From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yN1zMafazmIKdAEAbAwnHQ (envelope-from ) for ; Wed, 13 Jul 2022 16:45:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ULFUMafazmJDOgEA9RJhRA (envelope-from ) for ; Wed, 13 Jul 2022 16:45:59 +0200 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 67608735C for ; Wed, 13 Jul 2022 16:45:57 +0200 (CEST) Received: from localhost ([::1]:46262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBdcD-0006Pj-HE for larch@yhetil.org; Wed, 13 Jul 2022 10:45:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBdbt-0006PO-LD for bug-guix@gnu.org; Wed, 13 Jul 2022 10:45:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBdbq-0006q1-SJ for bug-guix@gnu.org; Wed, 13 Jul 2022 10:45:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBdbq-0001on-MA for bug-guix@gnu.org; Wed, 13 Jul 2022 10:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56540: =?UTF-8?Q?=E2=80=98home-bash-service-type=E2=80=99_?= =?UTF-8?Q?doesn=E2=80=99t?= quote environment variables Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 13 Jul 2022 14:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56540 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 56540@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16577234866939 (code B ref -1); Wed, 13 Jul 2022 14:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Jul 2022 14:44:46 +0000 Received: from localhost ([127.0.0.1]:47470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBdba-0001nr-IY for submit@debbugs.gnu.org; Wed, 13 Jul 2022 10:44:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:33554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBdbY-0001nj-Kg for submit@debbugs.gnu.org; Wed, 13 Jul 2022 10:44:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBdbY-0006Mc-Dl for bug-guix@gnu.org; Wed, 13 Jul 2022 10:44:44 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:45107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBdbT-0006mE-D3 for bug-guix@gnu.org; Wed, 13 Jul 2022 10:44:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=bxhTMBykgwMXzL1GvzwMmB2bNB48wbs0yAkN565e0pU=; b=ITaIDu4/npChFPKMCO2Ou2isyyZs4R4uGz+yZ7pI47DpVk4iebWsWLSp TuPF15FDbPiJa4AKH+j+xdaFYhTI8C+G5Hlhlws91wy5eSUotK6vK89pf jLdqGALqph3IyFK5cEGllNYT+ie/xtLJwYp4xv17tBfqfiLsUGcBjEdV0 g=; X-IronPort-AV: E=Sophos;i="5.92,267,1650924000"; d="scan'208";a="19282159" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2022 16:44:36 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 25 Messidor an 230 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la Pintade 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: Wed, 13 Jul 2022 16:44:34 +0200 Message-ID: <87a69d9inh.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657723557; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bxhTMBykgwMXzL1GvzwMmB2bNB48wbs0yAkN565e0pU=; b=ApVOqxDf9I1Bp8pLcSyZao1iECh+nEMcygiPaWuZ6tI6YIssd+QmjYmNzTa9D84Gku5uLn 32UVuNxEXS5EzA0uwnJit6pZl1ap4nBM59MpnpedJWvvJR8x1tKi7Eg5kwiJbg4VHrbpLH fA3qq3tlby1fknCtYsxJJprRq1HT5U+iojkxdO8bLloXbzZ68buEXvmlVeDYtNeAFKBB54 IG9AMYgqPVejPSIfIfxt9VvaU99V47gfa1Y5E4BPbYv0iM5/iAc26AAObs5YLgU56BZheY +nrqsYLhfx2mQb86pCCHax0LuhLyWqDBBsgajJDoUCJxWCgkgTetd4EyB0x8rg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657723557; a=rsa-sha256; cv=none; b=ZxoqVCumYndvM3KTWgz0LZN8vDsTj4q/eO5YSkIeP2l9TmMg9DoLD9R3kLlOFIi6Hk04yq u3fhU0k2H5wusAw0O+3xw7dyoMwk8svbwqjWBoazPCxgW/rP5VvVdvAQebdkhMydMai0Mz Y2JPLT5vjCslyPYGWwMch8zBUB3bht8WuCqpIpLNjYiZbdwVxbyJ1n2Hhyv9doCXc/D3q+ oPMXEPydZxpJnSZ8iM+oAWpETPgeBLSsDGoaaoV8mycVYaDbuVmmtQVjv0Uj62OBM8MNxU 19IOCTAzFDI9+BZs47q++wGfjO1dYZ5otHMgCCNQ9ewSM+jaqixIK8rq+AER9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b="ITaIDu4/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none); 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: 5.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b="ITaIDu4/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none); 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: 67608735C X-Spam-Score: 5.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: AcNLuJ7j2pjq Similar to , =E2=80=98home-bash-service-= type=E2=80=99 doesn=E2=80=99t quote environment variables. For example, if you add this service: --8<---------------cut here---------------start------------->8--- (define bash-fancy-prompt-service (simple-service 'bash-fancy-prompt home-bash-service-type (home-bash-extension (environment-variables '(("PS1" . "\\u@\\h \\w=CE=BB ")))))) --8<---------------cut here---------------end--------------->8--- =E2=80=A6 you end up with invalid shell code: --8<---------------cut here---------------start------------->8--- $ tail -1 $(guix build /gnu/store/maz98q1skyc7md2vknkg8ima3y2bq5yr-bash_pro= file.drv) export PS1=3D\u@\h \w=CE=BB=20 --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.