From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WBQVFT1Rz2IOpwAAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 01:11:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qJUgFT1Rz2Km2gAA9RJhRA (envelope-from ) for ; Thu, 14 Jul 2022 01:11:57 +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 CC9232E4AD for ; Thu, 14 Jul 2022 01:11:56 +0200 (CEST) Received: from localhost ([::1]:58258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBlWN-00087Q-KO for larch@yhetil.org; Wed, 13 Jul 2022 19:11:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBlVX-00086l-PO for bug-guix@gnu.org; Wed, 13 Jul 2022 19:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBlVX-00031u-Ff for bug-guix@gnu.org; Wed, 13 Jul 2022 19:11:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBlVW-0003cn-A1 for bug-guix@gnu.org; Wed, 13 Jul 2022 19:11:02 -0400 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-To: bug-guix@gnu.org Resent-Date: Wed, 13 Jul 2022 23:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 56540 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 56540-done@debbugs.gnu.org Mail-Followup-To: 56540@debbugs.gnu.org, ludo@gnu.org, ludovic.courtes@inria.fr Received: via spool by 56540-done@debbugs.gnu.org id=D56540.165775383513886 (code D ref 56540); Wed, 13 Jul 2022 23:11:02 +0000 Received: (at 56540-done) by debbugs.gnu.org; 13 Jul 2022 23:10:35 +0000 Received: from localhost ([127.0.0.1]:47933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBlV5-0003bu-21 for submit@debbugs.gnu.org; Wed, 13 Jul 2022 19:10:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBlV3-0003bc-Jj for 56540-done@debbugs.gnu.org; Wed, 13 Jul 2022 19:10:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBlUy-0002tT-9w for 56540-done@debbugs.gnu.org; Wed, 13 Jul 2022 19:10:28 -0400 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=ehXv/HpK6zJPKp8j5MTp3a95dfGNNezEPQAVS8spv+I=; b=GqgyW00yevAHOUhgZUEI 3hEB8RFgc9LuElv86/58eJwsgGYKmYNK/EsqjDpySqX1bPXLUDUPiGCf8Ypimr3XR5uzoKQNS0pXi WlEScNogqkdxmNIESvJOfisptC0cXcFN3aIonpLfvjLLUgSvplQTBWZRNrh8JtJzuYh1SZVdHzm35 zo61zOyLOFn8OroXTXXHDeTymHKxhHwN/KxTjGl2CQ1iqQ+bFEJXn6i7KANCsAI1iRy3lFa3JIOK7 g8PxA0eHt5SHWc+BxzxfMRV4446yHPELAOIfuwHHGxrbCOxM/xrVbdXlWFymraSGzjkh8JzQAUaxn GD5O+hjlRxdPYQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:54774 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBlUk-0002RL-NN for 56540-done@debbugs.gnu.org; Wed, 13 Jul 2022 19:10:27 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87a69d9inh.fsf@inria.fr> Date: Thu, 14 Jul 2022 01:10:11 +0200 In-Reply-To: <87a69d9inh.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 13 Jul 2022 16:44:34 +0200") Message-ID: <87zghc8v8s.fsf@gnu.org> 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 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=1657753917; 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-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=ehXv/HpK6zJPKp8j5MTp3a95dfGNNezEPQAVS8spv+I=; b=LULYLwwZ6ZU/Sx2W3wFxxJcbYzHEb9xSMVbYvWauF3WoYuCVqjZp27H3B+OdCGUGQpAN65 YFGEnp4Rc51XHluS3ekFGtlKgp2k9+TudJYEeaZCd7ycWwKMR7nLF488D5V+5OaE+Y52DF +Jaboqq8AjA7zNkNN8T/MAVcXhhTuVY55QnvmcRSbbBGES7PkTFCz8P8hsgHoTWUzvwR7G 867/nxQo4STgKsekazy5+BrnKcL+CuLAoUb+wkmVtErNeuqgecgT5G1XSJ6ursUgj/uMZf dSjXK3W74wJFEsClWcOUejEHWoH/z7LZSn4jAafZSthZrNZOVLGDcmDwIWIrzA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657753917; a=rsa-sha256; cv=none; b=AO5wQNWvASUKDahuQ8nsz8Ykn51XMXGTTwMJ4GfJOgUWjHZfOQrBExqx8mU33EUHE1h4/l wtCRSnPvUonP9CDVHSoumS9nvTSSmtTr140QUSGZAjb22FGru8pOAldvpKz7glFzURrieZ dYldxq9/pXFdVsA5HC/Yiv3TPPfn3SN5NNtwL0D+rwDJbaw87f+o13ppdHg2fZwzaLBn5r UUoSUA0G+oh9OWD4e028y8xg1YgZwOcZVNoI/CiXp7xc6R760VPr5jmkr+HVDGih/hZ0sZ bZKziEWw1byzwXFdpT8gyQMWMOlTUQ7CYpLuBSKYDYkoTAJzFxMzCs6x8O2fQg== 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=GqgyW00y; 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.15 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=GqgyW00y; 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: CC9232E4AD X-Spam-Score: -4.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: sdw+zNNnObs1 Ludovic Court=C3=A8s skribis: > Similar to , =E2=80=98home-bash-servic= e-type=E2=80=99 > doesn=E2=80=99t quote environment variables. For example, if you add this > service: > > (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 ")))))) > > > =E2=80=A6 you end up with invalid shell code: > > $ tail -1 $(guix build /gnu/store/maz98q1skyc7md2vknkg8ima3y2bq5yr-bash_p= rofile.drv) > export PS1=3D\u@\h \w=CE=BB=20 Fixed in 8af749224fd69daee5b67295186c77becb1a4479.