Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6231:5e5ce714ba95 | 6232:59200a2de7bf |
---|---|
76 } | 76 } |
77 | 77 |
78 _hg_status() | 78 _hg_status() |
79 { | 79 { |
80 local files="$("$hg" status -n$1 . 2>/dev/null)" | 80 local files="$("$hg" status -n$1 . 2>/dev/null)" |
81 local IFS=$'\n' | |
81 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) | 82 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) |
82 } | 83 } |
83 | 84 |
84 _hg_tags() | 85 _hg_tags() |
85 { | 86 { |