From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mId3LCL3u2I7TwEAbAwnHQ (envelope-from ) for ; Wed, 29 Jun 2022 08:54:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id rqZoLCL3u2IlNAAA9RJhRA (envelope-from ) for ; Wed, 29 Jun 2022 08:54:26 +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 306E83E890 for ; Wed, 29 Jun 2022 08:54:26 +0200 (CEST) Received: from localhost ([::1]:54824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6Rai-00075R-4Y for larch@yhetil.org; Wed, 29 Jun 2022 02:54:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6RaM-000755-En for guix-patches@gnu.org; Wed, 29 Jun 2022 02:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34916) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o6RaM-0008TA-6o for guix-patches@gnu.org; Wed, 29 Jun 2022 02:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o6RaM-0008FQ-2C for guix-patches@gnu.org; Wed, 29 Jun 2022 02:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56294] [PATCH] gnu: home: services: shells: Export Fish environment variables. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Jun 2022 06:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56294 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56294@debbugs.gnu.org Cc: "\(" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165648562931672 (code B ref -1); Wed, 29 Jun 2022 06:54:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jun 2022 06:53:49 +0000 Received: from localhost ([127.0.0.1]:57046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Ra8-0008Em-Gj for submit@debbugs.gnu.org; Wed, 29 Jun 2022 02:53:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:34082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o6Ra5-0008EZ-Cj for submit@debbugs.gnu.org; Wed, 29 Jun 2022 02:53:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Ra4-00074V-Q0 for guix-patches@gnu.org; Wed, 29 Jun 2022 02:53:45 -0400 Received: from knopi.disroot.org ([178.21.23.139]:42276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6Ra2-0008Q8-Oy for guix-patches@gnu.org; Wed, 29 Jun 2022 02:53:44 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8413245A8B; Wed, 29 Jun 2022 08:53:40 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id pq27NSyJqxUC; Wed, 29 Jun 2022 08:53:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1656485618; bh=kUAgcP1OKnd+Gj1LGU6Aiey/WzRNGOcdW9zf5wtFzok=; h=From:To:Cc:Subject:Date; b=TOmVsIbFbu8Hxclap6ASTKaB4e8bneWigbxfB4iXk2UppSWUmsBEYpu0oVBUn52iC TDEvuwI1DTxlkQda1Vl2kWeb27pVb2PNFLmm4K0RJse9SXDg/pikcLNYO2bNr0eOyi x/APLWZF9zUKEjoRCNsMbFg48MQ8XhxbCdcoesIY+H/lhnc4bSeagmh/JVHUzulGRP my8k0vd2I9lH4iaJohMP3tfIV+dare+56odbijlPuPen0EGh42tDJphXzWS0FRshdd +s4IjgoqZHdPfJpN/kemntL2p+wrXg0p29ivxLD149Kz5ZibZUSvyg3yJr05osJXQT 2oUbYCM+tv4yg== Date: Wed, 29 Jun 2022 07:53:33 +0100 Message-Id: <20220629065333.11191-1-paren@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: 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" Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" From: "\( via Guix-patches" via 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=1656485666; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=Rd+jQLykKiovWUD2YONzjWqqBLMzFHXdLSmsy+eZl6c=; b=fVc5Mz9HqoCC72YOXjJRn3pZruVPEeNTILQoWCjPtShio40+nw2heUY19uF2zMdPqYDjvJ BQPY39AQuJHwRu0CrNKS+BwilM5aD7I0jG/vDmNKGrO1Qnn4fWozyr0OQIOe5RrPdFQupJ l7MYuA2e39k/0Bcp+Hn+DBdXA4F2RJKnC/hdY06obVDJtdwic+LfV13QkJv8gH2hcfaGby YYsjXClYjKPbzO3MjnQu69rk/QMmP7zg4Sn+3jjDOLjteUY+jXePQ/mZAbfTfQB1Ut2aNK 8gSdePTWLnq2ihaMAak+MIm4R13cGiIVXchGG7+Xkyrek6lbjamiJFCs2RGmkA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656485666; a=rsa-sha256; cv=none; b=hGNSGpzHlQzBV//9Y2uNNOH5BdbJuHHIr4+eQZ+LUwp0QZ1of841nsWc55IgOHv6tpBi9e 1hCDJq79pT8QZAD4fwYzDC6CZMQWw83UZlxUbtdKJIgRv+Hsn/uxL/MFM5akA1kqHyWfIT 513FTv31u0XLIV30MSQWhmpp0AdJrYWM4M7MIOyen0kVuvJSrQE4lcUzxjlmOvZum7GRhE Jo1gRtpX/P+YkgWCE1dmFpz7QzBI1MDIo2fBXJot/2ZSpvhtZRvr5ZlauSHPwvafHr0vgw +eK3tdYlH4aWzAeb00N3ylxrTw4swc4vB8pmEOorjVr0w8AkyfQ6GdigZPhyoA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=TOmVsIbF; dmarc=pass (policy=none) header.from=gnu.org; 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.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=TOmVsIbF; dmarc=pass (policy=none) header.from=gnu.org; 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: 306E83E890 X-Spam-Score: -2.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6s4qCxLy+17r Variables set in the Fish configuration weren't previously being exported. This commit changes `set` to `set -x` to do that. * gnu/home/services/shells.scm (serialize-fish-env-vars): Output the `set -x` command instead of `set`, so that variables get exported. Based-on: d7449142f56cb0b34860f4ac90fc322aee32d177 --- gnu/home/services/shells.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/home/services/shells.scm b/gnu/home/services/shells.scm index fd5a66090d..dda80736b1 100644 --- a/gnu/home/services/shells.scm +++ b/gnu/home/services/shells.scm @@ -555,9 +555,9 @@ (define (serialize-fish-env-vars field-name val) ((key . #f) "") ((key . #t) - #~(string-append "set " #$key "\n")) + #~(string-append "set -x " #$key "\n")) ((key . value) - #~(string-append "set " #$key " " #$value "\n"))) + #~(string-append "set -x " #$key " " #$value "\n"))) val))) (define-configuration home-fish-configuration -- 2.36.1