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 ms0.migadu.com with LMTPS id +KpZOkFQ32GP4QAAgWs5BA (envelope-from ) for ; Wed, 12 Jan 2022 23:03:45 +0100 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 eOtBN0FQ32HgMAAAauVa8A (envelope-from ) for ; Wed, 12 Jan 2022 23:03:45 +0100 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 7A6CA14685 for ; Wed, 12 Jan 2022 23:03:45 +0100 (CET) Received: from localhost ([::1]:49036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7liZ-0001L0-Qs for larch@yhetil.org; Wed, 12 Jan 2022 17:03:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7lhz-0001Kr-A0 for help-guix@gnu.org; Wed, 12 Jan 2022 17:03:07 -0500 Received: from fossa.birch.relay.mailchannels.net ([23.83.209.62]:51633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7lhw-0008W5-Dn for help-guix@gnu.org; Wed, 12 Jan 2022 17:03:06 -0500 X-Sender-Id: instrampxe0y3a|x-authuser|paul@teulu.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9D89E6C26CC for ; Wed, 12 Jan 2022 21:46:07 +0000 (UTC) Received: from cpanel-008-lon.hostingww.com (unknown [127.0.0.6]) (Authenticated sender: instrampxe0y3a) by relay.mailchannels.net (Postfix) with ESMTPA id 1B66F6C287C for ; Wed, 12 Jan 2022 21:46:06 +0000 (UTC) X-Sender-Id: instrampxe0y3a|x-authuser|paul@teulu.org Received: from cpanel-008-lon.hostingww.com (cpanel-008-lon.hostingww.com [35.177.91.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.114.196.230 (trex/6.4.3); Wed, 12 Jan 2022 21:46:07 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: instrampxe0y3a|x-authuser|paul@teulu.org X-MailChannels-Auth-Id: instrampxe0y3a X-Whistle-Name: 6dfa18cc34ff6b2f_1642023967413_672688580 X-MC-Loop-Signature: 1642023967412:794363081 X-MC-Ingress-Time: 1642023967412 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=teulu.org; s=default; h=In-Reply-To:Subject:From:References:To:MIME-Version:Date: Message-ID:Content-Type:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YfjZAzlrpZ1oIulynKsoY/uHPp4ZDm85jbdJpt1vy6A=; b=eZiFWZzjpLFme0ax4pLTGBwbWG Cso6sfu8gBQdJXpvPfiwqOORmOhcyyAgwzwwPrIn68mSOlDdNmk9cytojSnaMPHm8GBOeRCsl7TKN PvTZhj60brof8zCKXZ1vgS9ddn+pfFxPwUBV5xTUs3OQrtpC5SvXW+Qm+3EmesmNvHkFJWgq5UstR IRyk2DscUO5MPSVmeC5EN2VhJvNj5q5tToC5YVcTtpeqn49MuL6+DbV9GKxghNQYx74jqmSClf0xE LMyXf+dXbz4MNzV49zVWVHjwmjhHNC/dp9mMf4l+o6e0YyotKWb8ddmtGvi6EDa/8W7oOYrGFbdO9 8MJPtq7Q==; Received: from 67.26.169.217.in-addr.arpa ([217.169.26.67]:44834 helo=[192.168.1.161]) by cpanel-008-lon.hostingww.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1n7lRS-00083L-F8 for help-guix@gnu.org; Thu, 13 Jan 2022 08:46:05 +1100 Message-ID: Date: Wed, 12 Jan 2022 21:46:00 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Content-Language: en-GB To: help-guix@gnu.org References: <4e7535f3-6117-e802-c5f9-cd0659d8f988@teulu.org> <54f84d62-83be-7048-44b1-e65c50948dd6@teulu.org> From: Paul Jewell Subject: Re: guix home .bashrc query In-Reply-To: <54f84d62-83be-7048-44b1-e65c50948dd6@teulu.org> X-OutGoing-Spam-Status: No, score=-1.0 X-AuthUser: paul@teulu.org Received-SPF: softfail client-ip=23.83.209.62; envelope-from=paul@teulu.org; helo=fossa.birch.relay.mailchannels.net X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 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, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-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=1642025025; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=K86qoxYj2HQxxAbrFvUZlu9Ca63CWmRtcT0y8VCgiQM=; b=W5QuSQ6eS8z6sI2QDtRNj03FjfsUw07iEqxmpPLc+whMOABoN802lFCOXhnatQbFWcwh6b AjmOL5scwJ1/E78uHoZ5UQuCtSMkSV6xkcTjqHm3rOUhhgeFWk0ergBa+/vphifsaAmsCM ErlB2zdsTBn/CHkR3zsmpRLTj+DbK49xCWLP7RPVwOI5HR6cL99tL20T9i5J30tVMy7wGB K/Futq7MCzZztQcWFPPrgWvWXV8MgOnRY2NDy/wTZG7lPVqDJvpS6Em3QkquQtDV55+zgD TkMiHsMWGGTSa7MzruJs9Nu+nIPeZIDezj7A6OOgz5LwjxZ9oC6em1tF6Q65tw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642025025; a=rsa-sha256; cv=none; b=aMW33XUgYKieI6wV67DXkdQUAIX7NwzxvW722mqWL+ICtp8R768BOBSz6o+sRKleh78qI3 GiSPi6GW3AxotzopD/RuwUenfRBcL+geClX9T0tX/N+vRU6aGoLw+M4xH7YlRe1hHJOb+4 5IyRG4S53CqTnbphesjUkFvXMYyNvwAM2/N+ZcDec6zIRpMlJYMOZhJIsVqIpyApA1kPUp HqDrFpCXUXParET5FXuf/mDpgstv8WS17DxUxxx+Lyy2gYJJzhGUs1sKNMQO9ECTiv//Pj DRO0pcxZTow1lDeXPNeLrs7s5RGHfst87TIaZad6DgXwshWDdrHDXC227HXj+A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=teulu.org header.s=default header.b=eZiFWZzj; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=teulu.org header.s=default header.b=eZiFWZzj; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7A6CA14685 X-Spam-Score: -3.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: buFrDwUuCB5U I have spent some time with this now, and post this for completion should anyone else have the same query. The duplication I saw is exactly as expected. The configuration created by the "guix home import" command includes a home-bash-configuration section. In this section, there is a field guix-defaults? with defines whether the .bashrc should be created with the standard guix content. This defaults to #t, and is not changed by guix home import. The "guix home import " command also adds a bashrc field which adds the current content of .bashrc to the end of the default content. Since I hadn't made any changes to my .bashrc from the standard, this gave me the appearance of duplication. If it is appropriate, I would be happy to consider how to adjust the manual page to make this clearer and to submit a patch. Of course I recognise that the manual pages for guix home are currently under development, so perhaps my input wouldn't be so helpful! Perhaps the "guix home import" command should not add the content of the .bashrc to the default - in other words the output should have (guix-defaults? #f) included at the appropriate point? Thanks to Andrew and the other developers for guix home - I like what I see! :) On 29/12/2021 12:15, Paul Jewell wrote: > > On 29/12/2021 12:06, Paul Jewell wrote: >> I am starting to work with guix home, and after the simple "guix home >> import" and guix home reconfigure with the created configuration, I >> note that the .bashrc now has the original content from my .bashrc, >> but duplicated, with one exception - the check to see if /etc/bashrc >> is present before sourcing it has been removed. The aliases >> referenced in the configuration file are also added at the bottom (no >> surprise in this case - I should just remove them from the copy of >> .bashrc taken during the import). >> >> Is this duplication a bug, or have I missed something? I can of >> course share the configuration file and the contents of .bashrc if >> that is helpful. >> >> Thanks! > > > Re-reading what I posted, I think I wasn't clear enough. To be > absolutely clear - when I say duplicated, I mean the original contents > of .bashrc are now in the new .bashrc file twice. > >