rpm --rebuild --target <Tab>_rpm:1: command not found: _call_programs /usr/share/zsh/Completion/Redhat/_rpm:273: _rpm_targets=( ${${(M)${(f)"$(_call_programs targets rpm --showrc)"}:#compatible archs*}##*: } ) Change _call_programs to _call_program
Created attachment 1467 [details] _rpm.patch
I changed _call_programs to _call_program but it still doesnot work as expected. I.e. $ rpmbuild --target <TAB> $ rpmbuild --target athlon\ k6\ pentium2\ i586\ i486\ i386\ noarch\ i686 Do you see the same behaviour? I don't konw how to fix this offhand.
Created attachment 1524 [details] _rpm.diff $ rpm -q zsh zsh-4.3.2-alt0.1 $ diff -u /usr/share/zsh/Completion/Redhat/_rpm .zsh/Completion/_rpm
(In reply to comment #2) > Do you see the same behaviour? > I don't konw how to fix this offhand. You should apply https://bugzilla.altlinux.org/attachment.cgi?id=1467
I tried ${=...} before. Does it work for you? Not for me.
[fix-9478]: created 4baa61e: "Fix --target option argument completion (ALT#9478)."
Будет в следующей сборке.