From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 14 21:07:44 2023 Received: (at 60753) by debbugs.gnu.org; 15 Jan 2023 02:07:44 +0000 Received: from localhost ([127.0.0.1]:55863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGsQy-0000NY-0r for submit@debbugs.gnu.org; Sat, 14 Jan 2023 21:07:44 -0500 Received: from mail-108-mta195.mxroute.com ([136.175.108.195]:35231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGsQu-0000NI-Qz for 60753@debbugs.gnu.org; Sat, 14 Jan 2023 21:07:42 -0500 Received: from mail-111-mta2.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta195.mxroute.com (ZoneMTA) with ESMTPSA id 185b32e9bfe000011e.001 for <60753@debbugs.gnu.org> (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Sun, 15 Jan 2023 02:07:34 +0000 X-Zone-Loop: 6b085d7249e7cab9e115bf185893d8ebaf44e2e91942 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=benoitj.ca; s=x; h=Content-Transfer-Encoding:Content-Type:Message-ID:Subject:To:From:Date :MIME-Version:Sender:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=zsX4xJJz+jwDnFc++M9g58KOmN94BV/nbYXCtpqV7c4=; b=S htoIA0eWK3v/AQvSf4LFZppOpjieja7Wkybyjp7TGHg5Mvpvw/aGLGc5K1tdQ3PV8Z8JGpt4EhRak W5Adj2hKtCE2v4J4fCJj69RtZ3prWuVfTSecXCv/t1O55IoCwCgYDu1o816T2Hkk6+q/94fj1N19P CTAy1oCDGMsRonvdyV24/P6xQzc+exmqs00w5QxYTfVnDQXMMYYpIP2SWr5JKsvxJwgzeWnMkkJML Txd5LjEeGpKIDSHtCG9WIQQIZ62MQ+pozDrORpn2ahDIK1up0jObNJr88YvoWBeTH4rw7ESBx1xyq buEtg9vXB/Qs/egCBIb2BdKsaPR3JSxpw==; MIME-Version: 1.0 Date: Sat, 14 Jan 2023 21:07:32 -0500 From: benoit@benoitj.ca To: 60753@debbugs.gnu.org Subject: issue with file-like init file Message-ID: X-Sender: benoit@benoitj.ca Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Id: benoit@benoitj.ca X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60753 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi David, I think I found the issue. It looks like the mixed-text-file function does not replace file-like object with their content, but instead with their path. if you look at the example in the documentation: https://guix.gnu.org/manual/en/html_node/G_002dExpressions.html you'll see that it's being used to replace the file-like with it's path in an "export" clause. So it totally explain what I see in my generated init file. When compared with home-bash-service-type in shells.scm, it calls "serialize-configuration" on the file-like object. This is found in add-bash-configuration. Hope this helps. thanks! Benoit