Bug 9478 - Typo in rpm completion
: Typo in rpm completion
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/zsh)
: unstable
: all Linux
: P2 minor
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2006-04-26 21:51 by
Modified: 2009-05-10 09:33 (History)


Attachments
_rpm.patch (486 bytes, patch)
2006-04-26 22:08, Sir Raorn
no flags Details | Diff
_rpm.diff (530 bytes, patch)
2006-06-20 11:52, Sir Raorn
no flags Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2006-04-26 21:51:17
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
------- Comment #1 From 2006-04-26 22:08:02 -------
Created an attachment (id=1467) [details]
_rpm.patch
------- Comment #2 From 2006-06-20 05:14:56 -------
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.
------- Comment #3 From 2006-06-20 11:52:56 -------
Created an attachment (id=1524) [details]
_rpm.diff

$ rpm -q zsh
zsh-4.3.2-alt0.1
$ diff -u /usr/share/zsh/Completion/Redhat/_rpm .zsh/Completion/_rpm
------- Comment #4 From 2006-06-20 11:54:37 -------
(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
------- Comment #5 From 2006-06-21 07:15:31 -------
I tried ${=...} before.  Does it work for you?  Not for me.
------- Comment #6 From 2009-04-12 01:38:35 -------
[fix-9478]: created 4baa61e: "Fix --target option argument completion
(ALT#9478)."
------- Comment #7 From 2009-04-12 19:33:43 -------
Будет в следующей сборке.