From: elaexuotee--- via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 73142@debbugs.gnu.org
Subject: bug#73142: Erroring libsixel package's bash completions for img2sixel
Date: Mon, 09 Sep 2024 19:42:24 +0100 [thread overview]
Message-ID: <3Q597EW4C0AXG.355WR8HAEA657@wilsonb.com> (raw)
In-Reply-To: <37BSQ0CKS192A.3M5HQPK7W2K9L@wilsonb.com>
It appears that share/bash-compltion/bash_completion performs an
`unset -f have' at the end of the script. This means that only the scripts
under /etc/bash_completion.d/ have access to `have', but said directory doesn't
even exist in our case.
That said, `have' is deprecated in favor of `_have' in 2.11, anyway. I have let
upstream libsixel know, but we could work around the issue with a
single-character patch:
diff --git a/converters/shell-completion/bash/img2sixel b/converters/shell-completion/bash/img2sixel
index 028651b..d96a326 100644
--- a/converters/shell-completion/bash/img2sixel
+++ b/converters/shell-completion/bash/img2sixel
@@ -1,6 +1,6 @@
# bash completion for img2sixel
-have img2sixel &&
+_have img2sixel &&
_img2sixel()
{
local cur prev
prev parent reply other threads:[~2024-09-09 18:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-09 12:11 bug#73142: Erroring libsixel package's bash completions for img2sixel elaexuotee--- via Bug reports for GNU Guix
2024-09-09 18:42 ` elaexuotee--- via Bug reports for GNU Guix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3Q597EW4C0AXG.355WR8HAEA657@wilsonb.com \
--to=bug-guix@gnu.org \
--cc=73142@debbugs.gnu.org \
--cc=elaexuotee@wilsonb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).