X-Loop: help-debbugs@HIDDEN Subject: bug#54469: home-environment-variables-service-type does not quote things Resent-From: Maxime Devos <maximedevos@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sat, 19 Mar 2022 21:06:01 +0000 Resent-Message-ID: <handler.54469.B.164772391217161 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 54469 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 54469 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.164772391217161 (code B ref -1); Sat, 19 Mar 2022 21:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Mar 2022 21:05:12 +0000 Received: from localhost ([127.0.0.1]:60677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nVgG8-0004Sj-5o for submit <at> debbugs.gnu.org; Sat, 19 Mar 2022 17:05:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:46492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maximedevos@HIDDEN>) id 1nVgG7-0004Sc-CE for submit <at> debbugs.gnu.org; Sat, 19 Mar 2022 17:05:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <maximedevos@HIDDEN>) id 1nVgG7-0006f3-59 for bug-guix@HIDDEN; Sat, 19 Mar 2022 17:05:11 -0400 Received: from [2a02:1800:110:4::f00:1a] (port=47120 helo=albert.telenet-ops.be) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <maximedevos@HIDDEN>) id 1nVgG4-0003C4-J8 for bug-guix@HIDDEN; Sat, 19 Mar 2022 17:05:10 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by albert.telenet-ops.be with bizsmtp id 8M542700K4UW6Th06M54tY; Sat, 19 Mar 2022 22:05:05 +0100 Message-ID: <8edc244df527278786d4d0e1dfb33afce441546d.camel@HIDDEN> From: Maxime Devos <maximedevos@HIDDEN> Date: Sat, 19 Mar 2022 22:04:59 +0100 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-oPSniVpxcEMRLCfbX3Qg" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1647723905; bh=YJpE491H9Wz3XN+sEuruFijPNI5QxnP7GiJEUqRc/Cc=; h=Subject:From:To:Date; b=JTYYV6IcS1A+mpK5El21dcM7ZkGMEZQtdQAYUL2uDGKyKjIi5cil6Ya/h2mseeW1F Uj/P8j350zf5Xj7PQZ1XhU9XFLyp8vriJ6UiBmOZ0X3nb9vtPOR1R1Koi1JwByLyjV CvdWZ0IaTnMaIf4Z003uSeQ7B0KBjIghRknmDbpiH7v0Yce3gZiKXxA5TW577ijbOW aMKGkqNqrFZ6BSMsPKvW5c10avO3UuATsAhYX50X0ri9sgkuY4RCKOQK0RkAPacCn1 Vxhde+5Lab6388bgOt9qCXmIlAKcXs1tK2Lg54L7pXnNryLF7c8TodzviPI7QbP0YT c0U5jvTm6XFLQ== X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a02:1800:110:4::f00:1a (failed) Received-SPF: pass client-ip=2a02:1800:110:4::f00:1a; envelope-from=maximedevos@HIDDEN; helo=albert.telenet-ops.be X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) --=-oPSniVpxcEMRLCfbX3Qg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi guix, Consider the following home configuration: (use-modules (gnu home) (gnu packages) (gnu home services) (gnu services) (guix gexp) (gnu home services shells)) (define formula-of-the-day ;; TODO: add some more formulae, randomise "$US dollar/=E2=82=ACeuro =3D 1.11") (home-environment (packages '()) (services (list (simple-service 'extra-environment-variables home-environment-variables-service-type `(("formula of the (reconfiguration) day" . ,formul= a-of-the-day)))))) Now start a container with this configuration with "guix home container": $ guix home container home-configuration.scm [start output block] WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete' /gnu/store/[...]/setup-environment: line 33: syntax error near unexpected token `(' /gnu/store/[...]/setup-environment: line 33: `export formula of the (reconfiguration) day=3D$US dollar/=E2=82=ACeuro =3D 1.11' Backtrace: In ice-9/boot-9.scm: 1752:10 11 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 10 (apply-smob/0 #<thunk 7f8d3bd36f40>) In ice-9/boot-9.scm: 724:2 9 (call-with-prompt _ _ #<procedure default-prompt-handle?>) In ice-9/eval.scm: 619:8 8 (_ #(#(#<directory (guile-user) 7f8d3bd30c80>))) In ice-9/command-line.scm: 185:18 7 (_ #<input: string 7f8d3bd29850>) In unknown file: 6 (eval (begin (use-modules (guix build utils) (# ?) ?) ?) ?) In ice-9/eval.scm: 619:8 5 (_ #f) In unknown file: 4 (primitive-load "/gnu/store/6xn1fyljn05cjgx3sakhmds88sc?") In ice-9/eval.scm: 293:34 3 (_ #(#(#(#(#(#(#(#(#<directory ?> ?) ?) ?) ?) ?) ?) ?) ?)) 159:9 2 (_ #(#(#(#(#(#(#(#(#<directory ?> ?) ?) ?) ?) ?) ?) ?) ?)) 159:9 1 (_ #(#(#(#(#(#(#(#(#<directory ?> ?) ?) ?) ?) ?) ?) ?) ?)) In unknown file: 0 (string-split #<eof> #\nul) ERROR: In procedure string-split: In procedure string-split: Wrong type argument in position 1 (expecting string): #<eof> [end output block] To investigate, I took a look at 'setup-environment': [lots of exports] export formula of the (reconfiguration) day=3D$US dollar/=E2=82=ACeuro = =3D 1.11 There are at least two issues here: * The variable 'formula of the (reconfiguration) day' was not quoted. I don't know how to do this in bash though, if it is even possible at all. If it turns out not to be possible, I'd prefer that to be mentioned by a nice error message, e.g. "environment variable names may not contain FOOs" or "environment variable names must consist of BARs". * The value '$US dollar/=E2=82=ACeuro' was not quoted, so bash would expand $US (to the empty string, since $US is not defined). Greetings, Maxime. --=-oPSniVpxcEMRLCfbX3Qg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYjZFfBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iDtAP4qk6u/F3zjHt7YxwfdZtiw8JMo SdL/cgOOSXil9GyOZwEA/fCRGd+rZcCj/ic3zS/+ETcnDCdtyjUDUeHWVmpsEwA= =7A3p -----END PGP SIGNATURE----- --=-oPSniVpxcEMRLCfbX3Qg--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Maxime Devos <maximedevos@HIDDEN> Subject: bug#54469: Acknowledgement (home-environment-variables-service-type does not quote things) Message-ID: <handler.54469.B.164772391217161.ack <at> debbugs.gnu.org> References: <8edc244df527278786d4d0e1dfb33afce441546d.camel@HIDDEN> X-Gnu-PR-Message: ack 54469 X-Gnu-PR-Package: guix Reply-To: 54469 <at> debbugs.gnu.org Date: Sat, 19 Mar 2022 21:06:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 54469 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 54469: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D54469 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 7 Apr 2022 16:46:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 07 12:46:13 2022 Received: from localhost ([127.0.0.1]:33254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ncVGv-0003qx-Q4 for submit <at> debbugs.gnu.org; Thu, 07 Apr 2022 12:46:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1ncVGu-0003ld-Mf for control <at> debbugs.gnu.org; Thu, 07 Apr 2022 12:46:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1ncVGp-0000T2-Ek for control <at> debbugs.gnu.org; Thu, 07 Apr 2022 12:46:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:Subject:From:To:Date:in-reply-to: references; bh=uyhcmmyE3pLgvBEhQF98cRqPtOWOopAUikE4dBZ8Lpk=; b=czXJSdQ3HbGdtY OXqxWjRppWUkADLRWjiXki86y1QkwaRnMCoJMUDbrMtPBlbdrhJu2bPGwAKkzf+GWEe0Uxxlwn43b E8EySFKasJy1It5MLUCgvo6CSq8juMBXYFQQr5IS9g/8gxyccAFco0j9AHadkMKb3wWP+S1Q7zDji XGGY7L+pbXQZmcUV6iFlTZ5ylTHoHW7f/bLONCmne6gtMbnF/3Nnz5kYikW8vbqqwqH8Fd1m2qmeD fq8dYsPeK5aXfBlxg7R1giteu9jToXznH7+4CAkiCNOJGt50k/EAv6mcLA0xPMvtPfFe8ceYkVebb zYqphbo9IYObl1ukx2UA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53489 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1ncVGp-0004R2-02 for control <at> debbugs.gnu.org; Thu, 07 Apr 2022 12:46:07 -0400 Date: Thu, 07 Apr 2022 18:46:05 +0200 Message-Id: <87ee28et9u.fsf@HIDDEN> To: control <at> debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> Subject: control message for bug #54469 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) severity 54469 important quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.