Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: complete rpm --{resign,addsign} in local
- X-seq: zsh-workers 11742
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: complete rpm --{resign,addsign} in local
- Date: Mon, 5 Jun 2000 01:13:23 +0000
- In-reply-to: <20000604170900.A22841@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <m2itvpteye.fsf@xxxxxxxxxxxxxxxxxxxxxx> <20000604170900.A22841@xxxxxxxxxxx>
On Jun 4, 5:09pm, Clint Adams wrote:
} Subject: Re: PATCH: complete rpm --{resign,addsign} in local
}
} > Index: Completion/Linux/_rpm
}
} zsh is still completing filenames directly after rpm -qcp or -qpc,
} with no space, FWIW.
This is problematic.
Currently _rpm uses `-p+' as the spec for the -p option. That means that
anything that will follow the -p (including package file name) is allowed
to appear in the same word, or in the next word.
If we remove the `+', then "rpm -qpc" doesn't match the spec `-p', and so
completion doesn't enter the `package_file' state -- it instead enters the
`package_or_file' state (the default spec from the `query' state).
If there's a clever workaround for this, I don't know it. (Perhaps this
is an indication of some lingering bugginess with `_arguments -s'?)
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author