about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2018-09-14 14:25:07 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-09-14 14:25:07 +0000
commitdecc78c72110159bd8a27faf579c020abca6cb0b (patch)
tree6e7b9761b742e47d43bf7d5ca9f7394469ff3537
parent24d427953b314eefb3a8268e608fdd3662a049e8 (diff)
downloadzsh-decc78c72110159bd8a27faf579c020abca6cb0b.tar.gz
zsh-decc78c72110159bd8a27faf579c020abca6cb0b.tar.xz
zsh-decc78c72110159bd8a27faf579c020abca6cb0b.zip
_svn: Allow hyphens in command name aliases.
Used by svn 1.11.0-rc1.
-rw-r--r--Completion/Unix/Command/_subversion2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion
index d30f2e657..a066b0728 100644
--- a/Completion/Unix/Command/_subversion
+++ b/Completion/Unix/Command/_subversion
@@ -34,7 +34,7 @@ _svn () {
     typeset -gHA _svn_cmds
     if _cache_invalid svn-cmds || ! _retrieve_cache svn-cmds; then
       _svn_cmds=(
-	${=${(f)${${"$(_call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z-]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:}
+	${=${(f)${${"$(_call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z-]##)[[:space:]]#(\([a-z, ?-]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:}
       )
       if (( $? == 0 )); then
         _store_cache svn-cmds _svn_cmds