summaryrefslogtreecommitdiff
path: root/bash-completion/whereis
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/whereis')
-rw-r--r--bash-completion/whereis1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash-completion/whereis b/bash-completion/whereis
index 2273a07c5..0dcbac35b 100644
--- a/bash-completion/whereis
+++ b/bash-completion/whereis
@@ -6,6 +6,7 @@ _whereis_module()
prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
'-B'|'-M'|'-S')
+ local IFS=$'\n'
compopt -o filenames
COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
return 0