Use $BASH_COMPLETION_DEBUG to turn on debugging, rather than $DEBUG.

This commit is contained in:
ianmacd 2006-02-24 21:07:47 +00:00
parent acc76f1bb5
commit e81de3566c

View File

@ -1,7 +1,7 @@
# bash_completion - programmable completion functions for bash 3.x
# (backwards compatible with bash 2.05b)
#
# $Id: bash_completion,v 1.852 2006/02/24 12:59:03 ianmacd Exp $
# $Id: bash_completion,v 1.853 2006/02/24 22:07:47 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -25,7 +25,7 @@
#
# RELEASE: 20050721
[ -n "${DEBUG:-}" ] && set -v || set +v
[ -n "${BASH_COMPLETION_DEBUG:-}" ] && set -v || set +v
# Alter the following to reflect the location of this file.
#
@ -902,8 +902,6 @@ _find()
{
local cur prev i exprfound onlyonce
echo FOO
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
@ -4748,6 +4746,7 @@ _muttconffiles()
{
local file sofar
local -a newconffiles
sofar=" $1 "
shift
while [[ "$1" ]]; do