From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 uI2iEmC6t2IsAQEAbAwnHQ (envelope-from ) for ; Sun, 26 Jun 2022 03:46:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KKJkEmC6t2K/ugAAauVa8A (envelope-from ) for ; Sun, 26 Jun 2022 03:46:08 +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 146EA2A423 for ; Sun, 26 Jun 2022 03:46:06 +0200 (CEST) Received: from localhost ([::1]:45102 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o5HLh-0005Jo-G9 for larch@yhetil.org; Sat, 25 Jun 2022 21:46:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5HEt-0004Sr-23 for bug-guix@gnu.org; Sat, 25 Jun 2022 21:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5HEs-0002Pb-Pa for bug-guix@gnu.org; Sat, 25 Jun 2022 21:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o5HEs-0004Sd-MO for bug-guix@gnu.org; Sat, 25 Jun 2022 21:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56226: Env variables in declared in home-fish-configuration not being exported Resent-From: Mbk Kamble Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Jun 2022 01:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56226 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 56226@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165620751817110 (code B ref -1); Sun, 26 Jun 2022 01:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jun 2022 01:38:38 +0000 Received: from localhost ([127.0.0.1]:46458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5HEI-0004Ri-D4 for submit@debbugs.gnu.org; Sat, 25 Jun 2022 21:38:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:38862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o5FRQ-0001el-8G for submit@debbugs.gnu.org; Sat, 25 Jun 2022 19:43:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o5FRQ-0005Qj-0y for bug-guix@gnu.org; Sat, 25 Jun 2022 19:43:52 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:43763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o5FRO-0002mN-CU for bug-guix@gnu.org; Sat, 25 Jun 2022 19:43:51 -0400 Received: by mail-pl1-x62f.google.com with SMTP id r1so5138383plo.10 for ; Sat, 25 Jun 2022 16:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=Tjcvk+MFyjZWkSXm9Rqr9Ggp1wprHQXPDF0Itirkuv4=; b=UD1PtmDw7VGiJLmycmo/uzGqHhBIXimymT+NKCkg8dqWfTqVGvRr14kkpp+oGNsqUQ c6+yDXXIiASQ+kbxBTeuw56RJUyh7MROjWDOnWSl/bUEDKpCjHn+gFiIy4/BsBEnoFdL ZoMKO5Cr9s7zw1SV9KW0aBiEBAFZt03FCGshzY8k6W0t0/Wd0GPcbLOJcKM99oR+Bs0T xGv0vySsgwdVXv3qY4tm1CSBrYBpusNvh4f6FOEuozDQMyKn/BSPxoRF+JHydLxPWlWG tpi1c6ETfzqCm4/88PxI8HRf1fT3dsrTcn7fk2vYitQaDEgI8aUo5pM8d5deMLDiDz8C Lzuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Tjcvk+MFyjZWkSXm9Rqr9Ggp1wprHQXPDF0Itirkuv4=; b=O45UXz1DvR7a+W6GiwyY0fusa3bsxAzXDxRtHT7grlaxKZrgogg19I9tEmJGWL4iNG fo6qplOCVisWePR43hjMMAcxPMUJkSX8lrIASQNMYT/PD4A7UF2GjxRvUyQgNyR6Zu05 v3d2FynRlERXYcbf93eA/3m7ODZ8hswSJwTtXC/9P1O749hS2LeXhkcp36wG67XukHXp iniZ++omI9/b3UzGodE3h07YfKKFRPONXAZZRwqDH9Cws2mvDQqRpMUJN74p2kDGND+X OOdaFLXHVRQ6FrAB42N9MjPMSCXrHPb48Jya+qtPVwNPCCUjnpjWEFI2tY5DMrAx2dki P+/Q== X-Gm-Message-State: AJIora86jk3Qhpujux9TPNDtjPHyB1naM3aoqhLF/5YmskbCldcbnTVI ZcKxp2cCoPNIjZYNbV2aw+BUTn6vKIptEk7aqtAaNfHvDVE= X-Google-Smtp-Source: AGRyM1uAgs7MP/wlYRikJvUPCtNpa5k14lcc0wd4QrINMpzdRbxuWdOE4YrV8TPrxTa+PSLjUWrdZ1WNQwgCAdwWStc= X-Received: by 2002:a17:90b:4a4c:b0:1ec:9072:6a72 with SMTP id lb12-20020a17090b4a4c00b001ec90726a72mr6929650pjb.96.1656200628135; Sat, 25 Jun 2022 16:43:48 -0700 (PDT) MIME-Version: 1.0 From: Mbk Kamble Date: Sat, 25 Jun 2022 18:43:37 -0500 Message-ID: Content-Type: multipart/alternative; boundary="0000000000001de97605e24e42f7" Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=mbkadsatx@gmail.com; helo=mail-pl1-x62f.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Sat, 25 Jun 2022 21:38:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 25 Jun 2022 21:45:56 -0400 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=1656207967; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=Tjcvk+MFyjZWkSXm9Rqr9Ggp1wprHQXPDF0Itirkuv4=; b=itJWzZAF3MgFAJZKeOBCnTEona32DElQk2n3eUKpCVczXx3ZOr9OhERlI0l87HLPGF20fs nfF+DEmRFlImKd7h1pJUwgkezA2BoBZ5rR266/CUMD7G5rMZ4XdqNBs1jF/OLM/4kPCYyy wTqkS8DwRsNivkCQmiXL/pl0crJfgDJ+FOLG9PrOZJ9jtBZJKJgHAAmE7SA9Om/UHYESJP aipCKNJ1SYbHF0xmnb08SDeQYgtm75oEoHzgQxNsfwbNCtZ2+JnKCBhlp3XVsirUmbiwV2 2rQTeiAvutaq2K5KZtTEI2A52eqDy1ggEfv33VJs31iuF8KUlgjlZYUp4YfCYw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656207967; a=rsa-sha256; cv=none; b=JhawLcq3o1ikOAJOasDuTIbi/qVwEImvIQJSrXBM8e03c34sCLKJMcoNK0/sDNhqZruA+N 579bZ+j02rVdcNCMG007/0SktSNkWhITrnklaOyjV/UXWQYQ8NQwdT6LkSUzXj81PuZ3Jm LKZe7d7V71KD8ccCfU6Qh82FV7IgQJOL0cgSirHRq35N0f98UItJur79uNDS4FCxJ0O8/h sI1nJXw3yrFErs97WhvBEzZdz7UOg5z3+hW2ypkDYB0r1XQFPgtmvJMBb6uEAlyvVeh1lm TV/ugQPsu6o6V97cUkV5fHGWYPnDPw6EWCo/E66UrUN5JdkJpdhKGV9pShvlvw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=UD1PtmDw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 7.04 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=UD1PtmDw; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 146EA2A423 X-Spam-Score: 7.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: 78OIToQ8Ykpo --0000000000001de97605e24e42f7 Content-Type: text/plain; charset="UTF-8" Hi. Env variables enumerated in home-fish-configuration are translated into set VAR VALUE statements in config.fish file. This set VAR in global scope which is fine. However, for fish shell, if variables are to be exported, the command syntax is set -x VAR VALUE So serialize-fish-env-vars in gnu/home/services/shells.scm needs to be modified from #~(string-append "set " #$key " " #$value "\n") to #~(string-append "set -x" #$key " " #$value "\n") -Milind --0000000000001de97605e24e42f7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi.
=C2=A0 Env variables enumerated in home-fish-config= uration are translated into
set VAR VALUE statements in config.fish file= . This set VAR in global scope which is fine. However, for fish shell, if v= ariables are to be exported, the command syntax is
set -x VAR VALUE
<= br>So serialize-fish-env-vars in gnu/home/services/shells.scm needs to be m= odified from
#~(string-append "set " #$key " " =C2= =A0#$value "\n") to
#~(string-append "set -x" #$key= " " =C2=A0#$value "\n")


<= div>-Milind
--0000000000001de97605e24e42f7--