Minor _filedir() edit to remove code no longer in use.
This commit is contained in:
parent
d7db9cf04f
commit
d8481d94fc
@ -1,6 +1,6 @@
|
||||
# bash_completion - programmable completion functions for bash 3.0
|
||||
#
|
||||
# $Id: bash_completion,v 1.829 2005/07/28 00:04:59 ianmacd Exp $
|
||||
# $Id: bash_completion,v 1.830 2005/07/28 00:11:14 ianmacd Exp $
|
||||
#
|
||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||
#
|
||||
@ -186,7 +186,7 @@ _rl_enabled()
|
||||
#
|
||||
_filedir()
|
||||
{
|
||||
local IFS=$'\t\n' xspec glob
|
||||
local IFS=$'\t\n' xspec #glob
|
||||
|
||||
_expand || return 0
|
||||
|
||||
@ -195,7 +195,7 @@ _filedir()
|
||||
|
||||
if [ "${1:-}" = -d ]; then
|
||||
COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -d -- $cur ) )
|
||||
eval "$glob" # restore glob setting.
|
||||
#eval "$glob" # restore glob setting.
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user