diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2018-02-08 15:12:39 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2018-02-08 15:12:59 +0000 |
commit | 567733906210feaebce94675985eb1e77602bfd8 (patch) | |
tree | a1013204e5bece514bed9ebb4172554520823f11 /Completion/Unix/Command | |
parent | dd8e55c46be98714fa16d2a56a46d5d28cbf13f5 (diff) | |
download | zsh-567733906210feaebce94675985eb1e77602bfd8.tar.gz zsh-567733906210feaebce94675985eb1e77602bfd8.tar.xz zsh-567733906210feaebce94675985eb1e77602bfd8.zip |
unposted: _subversion: Support subcommands with hyphens in their names, such as 'shelf-list (shelves)' from upstream 1.10 development versions.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_subversion | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion index be1f42f85..b7e10c06b 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 |