Fixed bash completion for filenames containing spaces.
authorJonas Diemer <diemer@gmx.de>
Tue, 11 Mar 2008 23:54:03 +0100
changeset 6232 59200a2de7bf
parent 6231 5e5ce714ba95
child 6233 14a4fdf9037f
Fixed bash completion for filenames containing spaces.
contrib/bash_completion
--- a/contrib/bash_completion	Tue Mar 11 23:59:43 2008 +0100
+++ b/contrib/bash_completion	Tue Mar 11 23:54:03 2008 +0100
@@ -78,6 +78,7 @@
 _hg_status()
 {
     local files="$("$hg" status -n$1 . 2>/dev/null)"
+    local IFS=$'\n'
     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
 }