From ce3e6b15e2c4478b2df9a7016c168b16325abfb0 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 30 Sep 2013 15:49:00 +0200 Subject: 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 bar foo Reported-by: Ángel González Signed-off-by: Karel Zak --- bash-completion/hwclock | 1 + 1 file changed, 1 insertion(+) (limited to 'bash-completion/hwclock') diff --git a/bash-completion/hwclock b/bash-completion/hwclock index 0c4ebafc1..de1ac20f3 100644 --- a/bash-completion/hwclock +++ b/bash-completion/hwclock @@ -6,6 +6,7 @@ _hwclock_module() prev="${COMP_WORDS[COMP_CWORD-1]}" case $prev in '-f'|'--rtc'|'--adjfile') + local IFS=$'\n' compopt -o filenames COMPREPLY=( $(compgen -f -- $cur) ) return 0 -- cgit v1.2.3-55-g7522