- _command(): call _filedir() when subcompletion commands return no matches

This commit is contained in:
ianmacd 2002-02-27 15:28:26 +00:00
parent 00c983ff96
commit c00299c0a3

View File

@ -1,6 +1,6 @@
# bash_completion - some programmable completion functions for bash 2.05a
#
# $Id: bash_completion,v 1.160 2002/02/27 11:01:21 ianmacd Exp $
# $Id: bash_completion,v 1.161 2002/02/27 16:28:26 ianmacd Exp $
#
# Copyright (C) Ian Macdonald <ian@caliban.org>
#
@ -1417,9 +1417,9 @@ _command()
func=${func%% *}
COMPREPLY=( $( compgen -A $func -- $cur ) )
fi
else
COMPREPLY=( $( compgen -f -- $cur ) )
fi
[ ${#COMPREPLY[@]} -eq 0 ] && _filedir
}
complete -F _command -o filenames nohup exec nice eval strace