Turn on -o filenames in _filedir() if compopt is available.

master
Ville Skyttä 2009-11-28 20:45:45 +02:00
parent 754ee95c1c
commit 911f3859c8
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ bash-completion (2.x)
* Combine dcop and qdbus completions into the latter.
* sed usage portability fixes.
* Fix leaking local variables from various completions.
* Turn on -o filenames in _filedir on bash >= 4.
[ Freddy Vulto ]
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)

View File

@ -456,6 +456,8 @@ _filedir()
fi
COMPREPLY=( "${COMPREPLY[@]}" "${toks[@]}" )
[ ${#COMPREPLY[@]} -ne 0 ] && type compopt &>/dev/null && \
compopt -o filenames
} # _filedir()