* bug#73142: Erroring libsixel package's bash completions for img2sixel
@ 2024-09-09 12:11 elaexuotee--- via Bug reports for GNU Guix
2024-09-09 18:42 ` elaexuotee--- via Bug reports for GNU Guix
0 siblings, 1 reply; 2+ messages in thread
From: elaexuotee--- via Bug reports for GNU Guix @ 2024-09-09 12:11 UTC (permalink / raw)
To: 73142
Hey!
The recent move of libsixel into mpv's propagated-inputs surfaced a bug in
our libsixel's bash completions. My bash sessions now start with an error:
-bash: have: Command not found
This was introduced in commit 43df0d83 from https://issues.guix.gnu.org/72180.
In particular, tracing with `set -o xtrace' show that it originates in the
first command of share/bash-completion/completions/img2sixel:
have img2sixel
Upstream has a relevant issue: https://github.com/libsixel/libsixel/issues/81.
Our configuration step might need to set --with-bashcompltiondir.
- BW
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#73142: Erroring libsixel package's bash completions for img2sixel
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
0 siblings, 0 replies; 2+ messages in thread
From: elaexuotee--- via Bug reports for GNU Guix @ 2024-09-09 18:42 UTC (permalink / raw)
To: 73142
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-09 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).