- some versions of bash don't like function names containing hyphens

This commit is contained in:
ianmacd 2004-02-25 03:03:28 +00:00
parent 683a4f5321
commit f8c37013c4

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05b
#
# $Id: bash_completion,v 1.690 2004/02/15 03:45:21 ianmacd Exp $
# $Id: bash_completion,v 1.691 2004/02/25 04:03:28 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -1853,7 +1853,7 @@ _apt_cache()
# Debian aptitude(1) completion
#
have aptitude && {
_comp-dpkg-hold-packages()
_comp_dpkg_hold_packages()
{
grep -B 2 'hold' /var/lib/dpkg/status | grep "Package: $1" \
| cut -d\ -f2
@ -1893,7 +1893,7 @@ _aptitude()
return 0
;;
unhold)
COMPREPLY=( $( _comp-dpkg-hold-packages $cur ) )
COMPREPLY=( $( _comp_dpkg_hold_packages $cur ) )
return 0
;;