diff contrib/zsh_completion @ 3605:9d815b074dcb

zsh: perform ~ expansion on _hg_root
author Brendan Cully <brendan@kublai.com>
date Tue, 31 Oct 2006 17:31:30 -0800
parents ef9c515836ae
children adbf440a81e0
line wrap: on
line diff
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -25,14 +25,14 @@ typeset -A _hg_cmd_globals
   do
     case "$words[$i]" in
       -R|--repository)
-        _hg_root="$words[$i+1]"
+        eval _hg_root="$words[$i+1]"
         _hg_cmd_globals+=("$words[$i]" "$_hg_root")
         (( i += 2 ))
         continue
       ;;
       -R*)
         _hg_cmd_globals+="$words[$i]"
-        _hg_root="${words[$i]#-R}"
+        eval _hg_root="${words[$i]#-R}"
        (( i++ ))
        continue
       ;;