Bug 9478 - Typo in rpm completion
Summary: Typo in rpm completion
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: zsh (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: Sir Raorn
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-26 21:51 MSD by Sir Raorn
Modified: 2009-05-10 09:33 MSD (History)
3 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Sir Raorn 2006-04-26 21:51:17 MSD
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 Sir Raorn 2006-04-26 22:08:02 MSD
Created attachment 1467 [details]
_rpm.patch
Comment 2 at@altlinux.org 2006-06-20 05:14:56 MSD
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 Sir Raorn 2006-06-20 11:52:56 MSD
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
Comment 4 Sir Raorn 2006-06-20 11:54:37 MSD
(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 at@altlinux.org 2006-06-21 07:15:31 MSD
I tried ${=...} before.  Does it work for you?  Not for me.
Comment 6 Sir Raorn 2009-04-12 01:38:35 MSD
[fix-9478]: created 4baa61e: "Fix --target option argument completion (ALT#9478)."
Comment 7 Sir Raorn 2009-04-12 19:33:43 MSD
Будет в следующей сборке.