Turn on -o filenames in _filedir() if compopt is available.
parent
754ee95c1c
commit
911f3859c8
1
CHANGES
1
CHANGES
|
@ -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)
|
||||
|
|
|
@ -456,6 +456,8 @@ _filedir()
|
|||
fi
|
||||
|
||||
COMPREPLY=( "${COMPREPLY[@]}" "${toks[@]}" )
|
||||
[ ${#COMPREPLY[@]} -ne 0 ] && type compopt &>/dev/null && \
|
||||
compopt -o filenames
|
||||
} # _filedir()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue