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 IG1XAtTXQGNa5QAAbAwnHQ (envelope-from ) for ; Sat, 08 Oct 2022 03:52:20 +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 cIGJAtTXQGM30wAA9RJhRA (envelope-from ) for ; Sat, 08 Oct 2022 03:52:20 +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 B499C169A8 for ; Sat, 8 Oct 2022 03:52:19 +0200 (CEST) Received: from localhost ([::1]:35124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogz0k-0002Tw-R1 for larch@yhetil.org; Fri, 07 Oct 2022 21:52:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogz0U-0002RG-Sg for bug-guix@gnu.org; Fri, 07 Oct 2022 21:52:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogz0U-00076Y-0S for bug-guix@gnu.org; Fri, 07 Oct 2022 21:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogz0T-0007Ar-Ht for bug-guix@gnu.org; Fri, 07 Oct 2022 21:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#23118: Duplicate entries in various environment variables Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 08 Oct 2022 01:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23118 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: liliana.prikler@student.tugraz Cc: Chris Marusich , 23118@debbugs.gnu.org Received: via spool by 23118-submit@debbugs.gnu.org id=B23118.166519389627542 (code B ref 23118); Sat, 08 Oct 2022 01:52:01 +0000 Received: (at 23118) by debbugs.gnu.org; 8 Oct 2022 01:51:36 +0000 Received: from localhost ([127.0.0.1]:37727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogz04-0007AA-42 for submit@debbugs.gnu.org; Fri, 07 Oct 2022 21:51:36 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:35579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogz02-00079x-GY for 23118@debbugs.gnu.org; Fri, 07 Oct 2022 21:51:34 -0400 Received: by mail-qk1-f182.google.com with SMTP id x25so291144qki.2 for <23118@debbugs.gnu.org>; Fri, 07 Oct 2022 18:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=naC9u3/5/fvrLyXBnAvCMm3loLJvlN5+cwnBexkYpf0=; b=bK5qEarCinlOXMwqDE++CfdE2KMoAKcMATO8oqmqZGa7B+3ebzxm/LPfSIFHZmfq22 OiJnx0Sft6anaWy5ILEj1dTvCINcjWvlVXssNr5J4auN1OEcQodDopryHsKUs/e3bah/ ivP4J2LtxP/WJnn/BY+JzoWhT3CtWFp/oXKyWLx1Gb/k7uztH/Y6SYVr7IMl0kh6w8Wb WMykA2dXm/MOF0KZFkkhCdYImb3ZvnPx0E/mCbgGdMwBqJqBVKQGuOBmqNhu4/CZlGH/ exnU0sxA70toltwHWFqLrlKJYwGINLNhrVXY+/U37LgmdSNQezPdPAagG1hvHFvXCGkq ygNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=naC9u3/5/fvrLyXBnAvCMm3loLJvlN5+cwnBexkYpf0=; b=gzXN/P4IAzOpUfhu2BHtrn9KsoM1caFoZwxOgXi90IalWk0UEz/37ZtQNxaXAQTFEO xXN/lYh/25qnjW53FaoMgzFuGSBjfBI5OJamV4sMbcPgcsPeljAaxuZtyGmw0YekkOZ/ 8oegVjQ2kp+nKvpfW1zoHw+6GzYwyAbUWobnn4Hfz8QzqpB0vkSyT5v3MzvmII9DYIlS /XQff4gAtmBC6uzZL4vfbarkC1f8RhqHS+9t54ehUuSpAOT+57Y2kQ0vcMEFjn94Dtpj R/tHfQ4GWgUhE6bFmiSHtVYLPgP6IPMqSSs+xMfKHIJx/XOmRiR+jcw9bcqBBx0ZvoCG 5bsQ== X-Gm-Message-State: ACrzQf0HzOol0lbRpVGfJBudStwuhki8+HWUirGLlVQOUg3ZH4PeJif1 x4cD7Er0xuQRRFob8MbHHPkQKMYd2qDYww== X-Google-Smtp-Source: AMsMyM4Mk9+4FX7GgbuXzabKSqm2buNWe3lg5GM3wGwX8BfwzHuVxZhgmDnJv5Vz0sG83myQuSmiQw== X-Received: by 2002:a05:620a:f15:b0:6cf:1efa:3705 with SMTP id v21-20020a05620a0f1500b006cf1efa3705mr5766600qkl.439.1665193888700; Fri, 07 Oct 2022 18:51:28 -0700 (PDT) Received: from hurd ([2607:fad8:4:3::1005]) by smtp.gmail.com with ESMTPSA id w16-20020a05620a445000b006dfa0891397sm3876355qkp.32.2022.10.07.18.51.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 18:51:27 -0700 (PDT) From: Maxim Cournoyer References: <874mbt28k4.fsf@gmail.com> <6ca9bc2b5bb96b0ea6740c3412d6aa4379d553e9.camel@student.tugraz.at> Date: Fri, 07 Oct 2022 21:51:26 -0400 In-Reply-To: <6ca9bc2b5bb96b0ea6740c3412d6aa4379d553e9.camel@student.tugraz.at> (Leo Prikler's message of "Thu, 03 Dec 2020 11:58:39 +0100") Message-ID: <87fsfz3wwx.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665193939; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc: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=naC9u3/5/fvrLyXBnAvCMm3loLJvlN5+cwnBexkYpf0=; b=UQ3Q/9Ho88jAQSvMHKPT5Jt77ez+vRMzw3XcUsVR6cWW6qahCS9Ta2cYLUWWG4Yn8nx0XG IogUACkhZdsgHp3DdrI5N9Zb4BJeiViRn+w85mdROimSyLoPPIy8I0e0uRySXiMfBJshQy nJMFROhr7g3Is0aOMs4NSHnFm/LkfU/AM8kSk965YgBLli4t4A2CW4KAiLjBim296lddAV nOYL4UhM6ZCbiRfqOI1y9VWGvervPXSyLQVLExREXRHxxUvu2V/XWJ/JfxH/yhwEREknAF e4BX76pRQEtpKexVjaUCt6cU0HRwVj06093jR8/PqP4hx/X49P67LHwWwkRA/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665193939; a=rsa-sha256; cv=none; b=eBVn3hCWnom80EWWb/D87HmEZ9yJLJya+QFrg1QJwNge8qxtBgrjaTVdWrBxYAv97Eu6r1 jP44TtaTaOprje4rsaLfR7kRYsKvFFp/zoTYeLD1yPjqPwE3BigBAYOCyvozK5AYVmeNX3 xzbCF8JPVhFw1+FLY7nmF6Fx42z+v8orPWAvxevHvQhlooCwgiJeNS7hcoQHfiaL5bWE+L avKALc3PvYVMqd4hGY1SHHPucTTUWkexU5cPMfZ89zlrgFLSkmjVzMeqX9LrJb3eEvC9Xh WhQQY62wlpxyI8ddIFOFWwWJCk9I6PfhMsfeGQs1NZbjcsW3aMLtPnqD7pOHqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bK5qEarC; 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: 6.12 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=bK5qEarC; 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: B499C169A8 X-Spam-Score: 6.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: khw/w0OwQgoJ Hi, [...] > More generally, this can become an issue when environment variables > reach a certain size (and has led to bug reports in Guix before, which > have since been fixed). POSIX mandates a syntax, that would allow > removing already present components first (see [1]), but I can hardly > imagine what monstrosities we would need to cook up to do this > reliably. Not to mention, that some otherwise POSIX-compliant shells > might not implement that syntax (correctly). Why are we talking about POSIX here? Our wrap-program procedure makes use of Bash; we could make use of its features to filter duplicates, right? Unless I'm missing something. -- Thanks, Maxim