- _comp-dpkg-installed-packages(): remove dependence on grep-dctrl
(patch by Dr.Rafael Sepúlveda <drs@gnulinux.org.mx>)
This commit is contained in:
parent
57b8c0bc50
commit
d5e7243e69
@ -1,6 +1,6 @@
|
||||
# bash_completion - some programmable completion functions for bash 2.05a
|
||||
#
|
||||
# $Id: bash_completion,v 1.329 2002/05/19 16:56:55 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.330 2002/05/21 00:36:07 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -2568,8 +2568,8 @@ _cardctl()
|
||||
have dpkg && {
|
||||
_comp-dpkg-installed-packages()
|
||||
{
|
||||
grep-dctrl -r -P -s package,status "^$1" /var/lib/dpkg/status \
|
||||
| grep-dctrl -n -F status -s package 'ok installed'
|
||||
grep -B 2 'ok installed' /var/lib/dpkg/status | grep 'Package' | \
|
||||
cut -d\ -f2
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user