diff contrib/bash_completion @ 6232:59200a2de7bf

Fixed bash completion for filenames containing spaces.
author Jonas Diemer <diemer@gmx.de>
date Tue, 11 Mar 2008 23:54:03 +0100
parents bb417470d62a
children 3463b28681ee
line wrap: on
line diff
--- 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"))
 }