diff options
author | Karel Zak | 2013-09-30 15:49:00 +0200 |
---|---|---|
committer | Karel Zak | 2013-09-30 15:49:00 +0200 |
commit | ce3e6b15e2c4478b2df9a7016c168b16325abfb0 (patch) | |
tree | 8c85ee4225a6a6a4db7fac0b63445a021b826eb5 /bash-completion/uuidd | |
parent | textual: fix misspelled words in -rc1 (diff) | |
download | kernel-qcow2-util-linux-ce3e6b15e2c4478b2df9a7016c168b16325abfb0.tar.gz kernel-qcow2-util-linux-ce3e6b15e2c4478b2df9a7016c168b16325abfb0.tar.xz kernel-qcow2-util-linux-ce3e6b15e2c4478b2df9a7016c168b16325abfb0.zip |
bash-completion: use '\n' as IFS when ask for filenames
The bash completion for more(1) treats the space-separated pieces of
filenames as different files.
$ touch foo\ bar
$ more foo<TAB>
bar foo
Reported-by: Ángel González <ingenit@zoho.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'bash-completion/uuidd')
-rw-r--r-- | bash-completion/uuidd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bash-completion/uuidd b/bash-completion/uuidd index c45b0674c..c8f6697c9 100644 --- a/bash-completion/uuidd +++ b/bash-completion/uuidd @@ -6,16 +6,19 @@ _uuidd_module() prev="${COMP_WORDS[COMP_CWORD-1]}" case $prev in '-p'|'--pid'|'-s'|'--socket') + local IFS=$'\n' compopt -o filenames COMPREPLY=( $(compgen -f -- $cur) ) return 0 ;; '-T'|'--timeout') + local IFS=$'\n' compopt -o filenames COMPREPLY=( $(compgen -W "timeout" -- $cur) ) return 0 ;; '-n'|'--uuids') + local IFS=$'\n' compopt -o filenames COMPREPLY=( $(compgen -W "number" -- $cur) ) return 0 |