changeset 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 5e5ce714ba95
children 14a4fdf9037f
files contrib/bash_completion
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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"))
 }