From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WB3KAYjBVmdGgQAAqHPOHw:P1 (envelope-from ) for ; Mon, 09 Dec 2024 10:08:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WB3KAYjBVmdGgQAAqHPOHw (envelope-from ) for ; Mon, 09 Dec 2024 11:08:08 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VqWt82Xy; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1733738887; 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=NlDp/riZuBOn/sGvT6dqr/XbINE9gPI6Wl3q74b2Fs4=; b=qPXuG/h5oNopW3Q/geelHxwt2Vq+sUGDwUqgGPLP760rCb7Ahue7xoQetrsE5xgq/9T+1Z cOtkJkUJDkz1rLSM1v/T9KMTwOBGLYltW+tmumH6ahrJWq+FiJuQXbqUqvNz8GcpHa7yAg SzD5jvAY/QYRnBKZ9cRrQD51fQDfkfrXY4C2hG7khiahlKgDyxr7lO/i48uSfUtkh1U3Ey G+PjmUflGa7X5kNZ3pR19HDOKXQ0Q+SSA4V6odktQdVYcrMvYIrbIS+35C9xKcgyEh2fb1 XMAH1AuBRJViN3ObaaDZgrVXn1MhdjEMLOW1bUeNNN3hVqiJOdSRhU03RBPNwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VqWt82Xy; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1733738887; a=rsa-sha256; cv=none; b=firN/vK7dwPWbF6VFWsuiMwwXIiwzZG0AwwvUu2qHG+xc+9iNyk514sDdNed1YJmox/Wye znIwekHjiRQ5Ne/MTAKfZzBRJ/FTQfRjhyhBjV8FPgCZfCndgGHAtf5qsa1gCY+3W7SYb2 ZCGx5riZAidoj8XV6Lj+A/d4us/+r/zil6W4QiYkDgGDqKCM3gNaldXnLCrN4W9f0+HUzF pdAmPBRzs38uKvoIzvNSOAl383mJlczBtgE7IJFABsb4NrUJAkQmlSRiUCcwHM9UUV+C54 wilUwkJE80iWuPNX6dBqTc1rv9k9v3CIlkBX7sS5QknBJlCXghh+nPk0OmT4fA== 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 956BA7C9BD for ; Mon, 09 Dec 2024 11:07:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKafY-000557-7a; Mon, 09 Dec 2024 05:07:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKZsX-0005j9-27 for help-guix@gnu.org; Mon, 09 Dec 2024 04:16:33 -0500 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKZsS-0000vk-3p for help-guix@gnu.org; Mon, 09 Dec 2024 04:16:31 -0500 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-53ff1f7caaeso1591179e87.0 for ; Mon, 09 Dec 2024 01:16:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733735782; x=1734340582; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NlDp/riZuBOn/sGvT6dqr/XbINE9gPI6Wl3q74b2Fs4=; b=VqWt82XyOwOewCC71oSngZD0W2AExy1NWAJb2CkznLM4BUEUlScAo4bQM61usNRaBn EEog9sl0+mWzwAJuiIVQtRKw8HE9umboJdoYVeV+nzyj2r/yjzNEe/Kz20fLFLYzOKV1 5K1VDq1mTdg0/aqBuEoBjqIolRorEmoM7pVMT9LdCcy6CoPFmAGfRlEadJZGu+FyBs1e K5rLRlJmyDzdn/ynSwFCjVCWCqJQxdKruZLofacmVECJ4bH+PQ1QZoPCnghOTItvyFec VndPzV83NcZqtJP6QoVBi4K6rbqoTjsKzLqUWoQ0/kKmMhoin3LqGt+46k4kJOiTq6H2 +0bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733735782; x=1734340582; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=NlDp/riZuBOn/sGvT6dqr/XbINE9gPI6Wl3q74b2Fs4=; b=g5Utzfm0tvyE1JIu3UDQhirqUibx7jKX3XeqrHZrXMSiFTy0I7cGH4Zb5J/mKQXINX 8JWuoJxZ4+64KFoP48AhmAh1dXJ42LrFCSrymkW/QAkkV8iz/mlRrLBLnHxSAXZ5eBvP sMJ2uYfC1C2I5EqQFQGoxZ1GCR+ybMukxO3tHLG2Ip//aHulFnt/UrqU5BYizIF9vgmK l2ya3CLKU9qpXP5JUC+TjKjdv3JH9RTiFh56MzNkMjG5+TCA1XOccohjRbGpQsINIrSN agqhC8HMk8QLPqpnvnRlzLguhEwaW5fhoviGB3E0SFkIf7aoBGp7RCgIRgKd6DCXOJH/ aJ+A== X-Gm-Message-State: AOJu0Yw1m5NQ2KsIWtxJgiuietl7mHHXzuuP6DsOaMEm9Kd0dCW3sp88 pHg4TUjiy4K0c/mFWlHNRP/BvQEYrxuHjIpwkMiZYp97KDHGjvoo2TL1Fw== X-Gm-Gg: ASbGncu+MuCzuDtl7uCa9HH9Cg6jESmq12zM36JJmfhED1ZTYhrxXpB4Vr3vC9Zq1mz XYqFtRNVMY6aOGWOW3njqerV7Mab9hAKN0CwjmSgapQbO1spowuL47mKm2v9SzkBfroy8CJenGA RMe1ZTsB8JLJTwZECgHQJZ9V1CSEH/G2XJIMCpOj2RVpcMHET7lzfcvK/Z2FyNHj455vunFtUl+ qXvxY4Xj5AjfITEAS0wTEUGBupcq+XhqcgSXoSUG2cXVRIfKg== X-Google-Smtp-Source: AGHT+IF+S2G+5LDJUI2Y7SCxPmu688GUrzGY7LID+4SrZfVMGlYznFV5YtPCI3pzhZ//NTWtMY6geA== X-Received: by 2002:a05:6512:6c5:b0:53e:39b7:54a3 with SMTP id 2adb3069b0e04-53e39b7560dmr3052929e87.24.1733735782357; Mon, 09 Dec 2024 01:16:22 -0800 (PST) Received: from tycho ([213.80.110.182]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53e39a2f120sm827062e87.45.2024.12.09.01.16.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 01:16:20 -0800 (PST) From: Einar Largenius To: help-guix Subject: Re: bash: have: command not found In-Reply-To: <76B20702-4119-4000-B3DF-D75BB0120576@tobias.gr> (Tobias Geerinckx-Rice's message of "Fri, 06 Dec 2024 22:58:23 +0000") References: <8734j0rj8h.fsf@gmail.com> <87zfl8qxqn.fsf@gmail.com> <76B20702-4119-4000-B3DF-D75BB0120576@tobias.gr> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Mon, 09 Dec 2024 10:16:19 +0100 Message-ID: <87r06hfc7w.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=einar.largenius@gmail.com; helo=mail-lf1-x12d.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -1.50 X-Spam-Score: -1.50 X-Migadu-Queue-Id: 956BA7C9BD X-TUID: pYdnFcfLbXGf fredag den 06 december 2024 skrev Tobias Geerinckx-Rice: > libsixel, through mpv, but you misunderstand me, there's nothing > wrong with it. It's the canary in the coal mine. > > The 'broken code' I meant is this > >>for f in "$HOME"/.guix-profile/etc/bash_completion.d/* ; do >> . "$f" >>done > > Origin aside, it's broken. Completion files aren't written to be > sourced this way. They'll get none of the library functions normally > available to them=E2=80=93such as 'have'. Hence the error. There is no bu= g. > > The correct solution is to let the bash-completion package take care > of bash completion, by sourcing etc/profile.d/bash_completion.sh at > shell startup. > > Guix System *does* explictly check for it! I'd missed that. Well > spotted: > > > You'll have to do the same, but with $HOME/.guix-profile substituted > for /run/current-system/profile. That seems to have resolved the issue. I added the above lines to have acce= ss to completion for the packages I have installed in my user-profile. I changed my config to: # Profile-specific completion if [ -f "$HOME"/.guix-profile/etc/profile.d/bash_completion.sh ]; then source "$HOME"/.guix-profile/etc/profile.d/bash_completion.sh fi Its unfortunate that this needs to be added manually on foreign distros. --=20 Med v=C3=A4nliga h=C3=A4lsningar Einar