- _command(): call _filedir() when subcompletion commands return no matches
This commit is contained in:
parent
00c983ff96
commit
c00299c0a3
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05a
|
# 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>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -1417,9 +1417,9 @@ _command()
|
|||||||
func=${func%% *}
|
func=${func%% *}
|
||||||
COMPREPLY=( $( compgen -A $func -- $cur ) )
|
COMPREPLY=( $( compgen -A $func -- $cur ) )
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
COMPREPLY=( $( compgen -f -- $cur ) )
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ ${#COMPREPLY[@]} -eq 0 ] && _filedir
|
||||||
}
|
}
|
||||||
complete -F _command -o filenames nohup exec nice eval strace
|
complete -F _command -o filenames nohup exec nice eval strace
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user