#1032829 zsh: error completing "sbuild --extra-package="

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
Sven Joachim
Date:
2026-08-22 09:59:02 UTC
Severity:
normal
Tags:
#1032829#5
Date:
2023-03-12 10:52:29 UTC
From:
To:
Typing "sbuild --extra-package=" and pressing TAB signals an error:

,----
| % sbuild --extra-package=
| (eval):1: unmatched "
| _arguments:465: command not found: _
| % sbuild --extra-package=
`----

Line 127 of /usr/share/zsh/functions/Completion/Debian/_sbuild has
mismatched quotes at the end.

#1032829#10
Date:
2023-03-12 15:13:44 UTC
From:
To:
Control: tags -1 + patch
Control: forwarded -1 https://www.zsh.org/mla/workers/2023/msg00292.html

Attached patch fixes that problem, I have also sent it to the
zsh-workers mailing list.

Cheers,
       Sven

#1032829#19
Date:
2023-03-12 19:28:00 UTC
From:
To:
Hi Sven,

Sven Joachim wrote:

Indeed. Would this change fix the issue?

-    '--extra-package=[make a package or directory available to the resolver]:package:_files -g "*deb(-.)' \
+    '--extra-package=[make a package or directory available to the resolver]:package:_files -g "*deb(-.)"' \

		Regards, Axel

#1032829#26
Date:
2023-03-12 19:33:44 UTC
From:
To:
Sven Joachim wrote:

Ah, sorry, oversaw your reply when I wrote my previous mail.

Thanks!

		Regards, Axel

#1032829#31
Date:
2025-01-09 12:07:22 UTC
From:
To:
Hi,

I ran into this bug today. As a workaround I manually fixed it for now;
I often need to build with extra packages. Are there still any blockers
for this ?

best,

werdahias

#1032829#36
Date:
2025-01-09 12:42:10 UTC
From:
To:
Upstream applied it as https://github.com/zsh-users/zsh/commit/6725cbc05fc7943290896ae80d706f335eec96ba

C

#1032829#41
Date:
2025-01-09 13:04:56 UTC
From:
To:
Thanks for pointing this out.

best,

werdahias

#1032829#50
Date:
2026-08-22 09:57:15 UTC
From:
To:
Package: zsh
Version: 5.9.2-1

It was cherry-picked for zsh 5.9.2 in
https://github.com/zsh-users/zsh/commit/b2920dff329e804f148c3dc1486132c6bc023cd8.

Closing the bug accordingly,
Sven