* Rpm completion problem
@ 2000-08-05 7:25 Wayne Davison
2000-08-05 17:08 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Wayne Davison @ 2000-08-05 7:25 UTC (permalink / raw)
To: Zsh Workers
I've noticed a problem in rpm completions when I specify the 'p'
(package file) option bunched up with other options. For instance:
rpm -qip file<tab>
completes the names of installed packages (though it does complete
file names if there is no installed-package match), while:
rpm -qi -p file<tab>
properly completes only the files in the current directory.
..wayne..
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rpm completion problem
2000-08-05 7:25 Rpm completion problem Wayne Davison
@ 2000-08-05 17:08 ` Bart Schaefer
2000-08-06 19:08 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2000-08-05 17:08 UTC (permalink / raw)
To: Wayne Davison, Zsh Workers
On Aug 5, 12:25am, Wayne Davison wrote:
} Subject: Rpm completion problem
}
} I've noticed a problem in rpm completions when I specify the 'p'
} (package file) option bunched up with other options.
This was discussed in the thread referenced by zsh-workers/11752, and
I think the patch in 11985 was supposed to provide a way to fix it, but
_rpm never got updated.
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rpm completion problem
2000-08-05 17:08 ` Bart Schaefer
@ 2000-08-06 19:08 ` Bart Schaefer
2000-08-06 21:44 ` Bart Schaefer
0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2000-08-06 19:08 UTC (permalink / raw)
To: Wayne Davison, Zsh Workers
On Aug 5, 5:08pm, Bart Schaefer wrote:
}
} On Aug 5, 12:25am, Wayne Davison wrote:
} }
} } I've noticed a problem in rpm completions when I specify the 'p'
} } (package file) option bunched up with other options.
}
} This was discussed in the thread referenced by zsh-workers/11752, and
} I think the patch in 11985 was supposed to provide a way to fix it, but
} _rpm never got updated.
The last word in that discussion appears to have been Sven, do you
recall whether you every did anything specific to this?
I remarked in 11742:
} 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).
This is no longer the problem; remove the `+' and `rpm -qpc <TAB>' completes
package file names exactly as it should. However, `rpm -qp<TAB>' inserts a
space rather than completing `c' et al.
Based on my exchange with Sven as quoted in 11793, I'd say that _rpm needs
another ->state in order to handle bunched query options following -qp, or
at least that the package_file state needs to be tweaked somehow. In the
meantime, if you don't mind having to make `p' be the last option in any
bunch beginning with `-q', just remove the `+' on line 62 of _rpm.
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rpm completion problem
2000-08-06 19:08 ` Bart Schaefer
@ 2000-08-06 21:44 ` Bart Schaefer
0 siblings, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2000-08-06 21:44 UTC (permalink / raw)
To: Zsh Workers
On Aug 6, 7:08pm, Bart Schaefer wrote:
}
} The last word in that discussion appears to have been
The rest of that sentence should have been "11793".
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-08-06 21:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-05 7:25 Rpm completion problem Wayne Davison
2000-08-05 17:08 ` Bart Schaefer
2000-08-06 19:08 ` Bart Schaefer
2000-08-06 21:44 ` Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).