- changes to aptitude completion comments by Dr.Rafael Sepúlveda

<drs@gnulinux.org.mx>
This commit is contained in:
ianmacd 2002-05-08 15:38:56 +00:00
parent e8432a6a54
commit 2500af25aa

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a
#
# $Id: bash_completion,v 1.307 2002/05/08 17:26:18 ianmacd Exp $
# $Id: bash_completion,v 1.308 2002/05/08 17:38:56 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -1426,7 +1426,7 @@ _apt_cache()
[ "$have" ] && complete -F _apt-cache $filenames apt-cache
complete -F _apt_cache $filenames apt-cache
# Debian Linux aptitude(8) completion
# Debian Linux aptitude(1) completion
#
have aptitude &&
_aptitude()
@ -1449,7 +1449,7 @@ _aptitude()
purge|remove) ]]; then
special=${COMP_WORDS[i]}
fi
#exclude some conflicting options
#exclude some mutually exclusive options
[[ ${COMP_WORDS[i]} == '-u' ]] && dashoptions=${dashoptions/-i}
[[ ${COMP_WORDS[i]} == '-i' ]] && dashoptions=${dashoptions/-u}
done